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
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
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
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
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
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
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
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
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
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
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
2007 Aug 03
0
strange encode/decode results on C54x
wow, the attitude wasn't necessary. What I was asking wasn't in the documentation, how am I supposed to know I wasn't supposed to initialize the encoder/decoder every time (I was trying to save space for the allocs), I've never dealt with codecs before and it isn't in the documentation. I was not insinuating that your code was wrong, I was hoping you could tell me that I set
2007 Aug 03
1
strange encode/decode results on C54x
Hello, I currently have speex "working" in my project but the encode and the decode don't seem to be working like I would hope. I am using speex 1.2beta2 and I am trying to 16bit 8kbs narrowband. on the decode side I encoded a voice on a windows machine. I took the encoded information and transferred it over to the C54x project and decoded it and it didn't sound that great.
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
2018 Nov 13
0
Error running "samba-tool dbcheck" after going from 4.8.6 to 4.9.2
On Mon, 2018-11-12 at 20:36 +0000, Noel Power wrote: > Hi > > On 09/11/2018 10:21, Andrew Bartlett wrote: > > On Fri, 2018-11-09 at 11:46 +0300, Taner Tas via samba wrote: > > > > I just tested Samba 4.9.2 on one of my DCs, previously running > > > > version 4.8.6. Immediately after install, I ran "samba-tool dbcheck" > > > > and got
2014 Jan 10
0
[PATCH 5/7] perl: Properly decode node names, value keys from UTF-8
--- generator/generator.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/generator.ml b/generator/generator.ml index 6b1eef7..4119b04 100755 --- a/generator/generator.ml +++ b/generator/generator.ml @@ -2648,7 +2648,7 @@ DESTROY (h) pr " croak (\"%%s: %%s\", \"%s\", strerror (errno));\n" name;