search for: toutf8

Displaying 5 results from an estimated 5 matches for "toutf8".

Did you mean: to_utf8
2008 Jul 17
3
Convert data to utf-8
Hello, I''m trying to find a solution to convert everything returned by mechanize to utf-8, no matter if the original page is utf-8 or iso and I really don''t know where to start from... agent = WWW::Mechanize.new { |a| a.log = Logger.new(File::join(RAILS_ROOT, "log/mechanize.log")) } one_page = agent.get("www.google.fr") My first problem is that one_page
2010 Sep 17
1
odfWeave UTF-8 error and latin characters
...angue: 0.9379 0.7874 0e+00 Resultado do reteste da doação: 0.9317 0.6607 2e-04 Indicação médica para investigação: 0.6957 0.5556 1e-04 Considering some sugestions form other lists I tryed to encode the table using enc2utf8 and descr::toUTF8 such as <<tabela2, echo = FALSE, results = xml>>= odfTable(enc2utf8(tabela2),useRowNames=T,name ='Tabela 2') @ OR <<tabela2, echo = FALSE, results = xml>>= enc2utf8(odfTable(tabela2,useRowNames=T,name ='Tabela 2')) @ OR <<tabela2, echo = FALSE,...
2006 May 17
0
Rubyful-soup and ''malformed utf-8 character''
Hi Guys, I am trying to use Rubyful-soup for a simple webpage modification project. The issue is that when I try to display the modified html (generated by @soup.to_s) using RJS, an error pops up saying ''malformed utf-8 character''. I can fix this by using @soup.to_s.toutf8 but that causes some of the characters in the document to be messed up (ie ''&nbsp becomes %nbsp''). Any ideas how to fix this, (or alternativly a different html parser, rubyful soup seems the easiest one out there to use. Thanks a lot, Scott
2006 Apr 01
0
Using globalize and Net::HTTP.get
...in the db. (Maybe it should be an add on to globalize) The translation was horrible, but it was a fun hack. One problem I didn''t get over forever which no one seemed to be able to help me with is that the content from Net::HTTP.get is not in UTF-8 form. To convert this, you must use .toutf8 on the string object. It was simple, but I spent almost a whole day on this, so I document it here for posterity, in case anyon else ever runs into it. Here are the details. I figured you guys would be interested in it. http://blog.kenlet.com/articles/2006/03/31/internationalization-with-the-hel...
2023 Jul 06
0
njs-0.8.0
...njs requiring to modify the code. *) Change: non-compliant deprecated String methods were removed. The following methods were removed: String.bytesFrom(), String.prototype.fromBytes(), String.prototype.fromUTF8(), String.prototype.toBytes(), String.prototype.toUTF8(), String.prototype.toString(encoding). *) Change: removed support for building with GNU readline. *) Feature: added Array.from(), Array.prototype.toSorted(), Array.prototype.toSpliced(), Array.prototype.toReversed(). *) Feature: added %TypedArray%.prototype.toSo...