Re:"this gem is awesome".to_spanish # = "esta joya es impres...
by callmeed on Wednesday January 12, 2011 @12:47AM
(#2095145)
What's causing this?
[ Parent
| on HN ]
Re:"this gem is awesome".to_spanish # = "esta joya es impres...
by carbon8 on Wednesday January 12, 2011 @02:13AM
(#2095304)
Ruby 1.8 displays non-ascii characters in the shell using octal escape sequences. \302\277 is ¿, \303\263 is ó and so forth. It should be fine to work with (eg, saving to a database or displaying in a template) as long as you know the encoding. I just glanced at the code, but it looks like it just takes whatever the Google Translate API gives it, which I'm guessing is UTF-8.
Re:"this gem is awesome".to_spanish # = "esta joya es impres...
by comron on Wednesday January 12, 2011 @12:57AM
(#2095169)
Listed under "Roadmap" in the readme is the following:
Investigate Unicode support for Ruby 1.8. to_lang has only been tested with 1.9.
Do you have a copy of 1.9 to test with?