similar to: Any function to decode utf-8 encoded text in ruby??

Displaying 20 results from an estimated 50000 matches similar to: "Any function to decode utf-8 encoded text in ruby??"

2008 Apr 30
1
Google Ajax Search API - UTF-8 encoded response
Hello All, I am writing a facebook application in ruby on rails, which requires google search in one page. I''ve implemented this using a simple RESTful interface as follows: url = URI.parse( "http://ajax.googleapis.com/ajax/services/search/ local?v=1.0&q="+params[:keyword] ) req = Net::HTTP::Get.new(url.path+"?"+url.query) res = Net::HTTP.start(url.host,
2019 Feb 08
0
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
Tomas, > In my scenario, the conversion is invoked by RGui before returning the input to the main R loop, even before the input gets to the parser. In principle, we could change this particular conversion in RGui to avoid the substitution. Not sure whether I am missing something here, but I used RStudio for my examples (I should have said) and David's mentioned RStudio as well, so it does
2016 Sep 05
2
How to print UTF-8 encoded strings from a C routine to R's output?
Dear R experts, It seems that Rprintf has to be used to print from a C routine to guarantee to write to R?s output according to https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Printing. However if a string is UTF-8 encoded, non-ASCII characters (e.g., the infinity symbol http://www.fileformat.info/info/unicode/char/221e/index.htm) are misprinted. Is this an unsupported feature or is
2011 Sep 21
1
Dovecot failing to parse some UTF-8 encoded attachment filenames, returning empty string instead
Hi, I'm seeing a strange problem with some attachment filenames that are UTF-8 encoded. The problem seems to be related to spaces and/or unusual characters in filenames, like accented characters (or perhaps just to filenames if UTF-8 encoded; I've not explored that fully). These filenames are shown as empty strings in IMAP using Dovecot. I've attached a sample message that exhibits
2019 Feb 07
0
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
This doesn't seem to be happening on MacOS, neither in Terminal nor RStudio, (R 3.5.1, R-devel, R-patched). So probably Windows specific. -pd > On 7 Feb 2019, at 11:17 , David Byrne <david.byrne222 at gmail.com> wrote: > > Bug > Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded > file containing the infinity symbol (' ? ') results in
2019 Feb 07
0
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
There seems to be something odd with "?" on Windows (and not only with read.table) In native encoding (cp-1252 in my case), "?" gets converted to "8" x <- "?" Encoding(x) #> [1] "unknown" print(x) #> [1] "8" charToRaw(x) #> [1] 38 "?" is indeed "8" identical(x, "8") #> [1] TRUE Everything
2019 Feb 08
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can reproduce this behavior on my Windows 10 system in RGui (cp1252): when I paste the Unicode infinity symbol into the console, it is treated as number 8. This is caused by Windows "best fit" default behavior in conversion of unicode characters to characters in the current native encoding: at some point in the past, 8 has been chosen as a good fit for infinity in Windows. In my
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
Bug Using read.table(file, encoding="UTF-8") to import a UTF-8 encoded file containing the infinity symbol (' ? ') results in the infinity symbol imported as the number 8. Other Unicode characters seem unaffected, example, Zhe: ? Expected Behavior: The imported data.frame should represent the infinity symbol as the expected 'Inf' so that normal mathematical operations
2002 Mar 05
3
UTF-8 & Hebrew
Sorry if this is offtopic. My Win32 comment editor uses a routine of my own to read comments directly from OGG files but uses vorbiscomment.exe to write comments. I've implemented a UTF-8 function which I found on the internet to decode UTF-8. It appears to be working fine for most European characters, however, I have a Russian user using WinXP who is entering Hebrew characters such as
2019 Feb 07
3
Bug Report: read.table with UTF-8 encoded file imports infinity symbol as Integer 8
I can confirm that it doesn't happen on Ubuntu 18.04.1 so Peter is most likely correct; it looks like its Windows specific. On Thu, 7 Feb 2019 at 12:55, peter dalgaard <pdalgd at gmail.com> wrote: > > This doesn't seem to be happening on MacOS, neither in Terminal nor RStudio, (R 3.5.1, R-devel, R-patched). So probably Windows specific. > > -pd > > > On 7 Feb
2006 Oct 04
1
Decode win32 encoded files on TI C5x???
> For encoding into and decoding from "raw Speex stream" (if you can call > it that), I suggest you start with the sampleenc.c and sampledec.c > example code in Appendix B of the Speex Manual. There is no such a thing as a "raw Speex format". Also, sampleenc.c and sampledec.c are good for learning how to use the API, but the compressed format shouldn't be used in
2006 Oct 04
3
Decode win32 encoded files on TI C5x???
I have successfully DECODED speex on TI C5509: #define TESTENC_BYTES_PER_FRAME 20 /* 8kbps */ #define TESTENC_QUALITY 4 /* 8kbps */ I am trying to generate the files I need with speexenc.exe: speexenc -n --quality 4 -V male.wav male.spx But I can't decode the files on C5x. Yes, I have seen that speexenc.exe adds Ogg header and
2013 Apr 23
2
Metaflac UTF-8 fixes
Hopefully the last patch from me to UTF-8 issues. Metaflac can now print all console supported characters from tags on the screen. It also fixes metaflac to be able to import its own exports back without non-ascii characters getting mutilated. And --no-utf8-convert now works properly with import and export commands. I updated my Windows binary archive with these changes for any interested
2017 May 09
0
source(), parse(), and foreign UTF-8 characters
On 09/05/2017 3:42 AM, Kirill M?ller wrote: > Hi > > > I'm having trouble sourcing or parsing a UTF-8 file that contains > characters that are not representable in the current locale ("foreign > characters") on Windows. The source() function stops with an error, the > parse() function reencodes all foreign characters using the <U+xxxx> > notation. I have
2007 May 03
0
smbldap-tools Error in perl module decode.pm
smbldap-tools in a working environment suddenly unable to add or modify users. smbldap-useradd kenh Use of uninitialized value in die at /usr/lib/perl5/vendor_perl/5.8.6/Convert/ASN1/_decode.pm line 111. Perl debug trace [root@steel ~]# perl -d /usr/sbin/smbldap-useradd jimh Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man
2007 Jul 14
0
file couldn't play after Speex encode and decode
The encoded speex file should, by convention, be given the '.spx' extension rather than '.wav', but that is not the issue. What appears to be happening is that the '.wav' extension on your named output file from speexdec is not being recognised as '.wav' and, consequently, the file is being written as 'raw' data without the wave file header. I am not sure
2009 Jun 02
3
UTF-8, AES encryption, the works - help !
Hi, I would like to store some sensitive data into my DB using Rails, it has to be encrypted. I''ve tried a lot of methods of encryption, they all work. Fine by now, yet when I try to store the results into my DB (tables are UTF-8, SET NAMES UTF8; is there, server UTF-8, DB Connection UTF-8) -- I can cmd (yeah, Windows..) and enter a UTF-8 record into the table, so that''s not
2013 Apr 25
1
search and UTF-8 normalization forms (NFD)
Hello, on a system with dovecot 2.2 I've got a mailbox containing multiple mails from a person called Kr?ger, but From: header encoded differently. Some are encoded in UTF-8 normalization form decomposed (as used by Mac OSX), that is u and umlaut accent as sperate combined codepoints instead of one ?: From: =?utf-8?Q?replaced_Kru=CC=88ger?= <krueger at some.domain> Searching within
2008 Apr 21
1
UTF-8 or Unicode on Windows PC
Dear all, is it possible to set up RGUI or JGR on Windows PC to UTF-8 encoding? I looked for it in mailing lists and in the documentation, but I couldn't figure out it. My problem is e.g. to split a given string containing German and Russian words into characters. example: > a <- "asd?as" > strsplit(a,NULL) [[1]] [1] "a" "s" "d"
2015 Sep 22
1
Differences in printing UTF-8 strings to stdout vs. stderr under Windows
It seems that under Windows, some UTF-8 strings that print OK to stdout do not print correctly to stderr. To reproduce: x <- "\ub124" cat(x, file = stdout()) ## ? cat(x, file = stderr()) ## <U+B124> Original motivating problem here: https://stackoverflow.com/questions/32696241/how-to-display-a-message-warning-error-with-unicode-characters-under-windows How does printing to