From: Eric Christopherson Date: 2010-02-21T10:30:50+09:00 Subject: Re: RTranslate Gem (Open-URI) and Encoding On Fri, Feb 19, 2010 at 1:29 PM, The Chromag wrote: > Jonathan Nielsen wrote: >> Are you using ruby 1.8 or ruby 1.9?  In 1.9, you should do >> string.force_encoding("UTF-8") or >> string.force_encoding("ISO-8859-1")... as needed.  In ruby 1.8, I >> think it just works with the bits you provide it and it's your >> terminal that determines what actually gets displayed. > > I'm using 1.8.7.  I don't think it's the terminal but I'm not entirely > sure.  I'm outputting the translation to a text file, but technically > I'm viewing it in a terminal app (Putty) so it may be screwing up there. > > Thanks. Make sure PuTTY is set for UTF-8.