News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.