From: The Chromag Date: 2010-02-20T04:29:57+09:00 Subject: Re: RTranslate Gem (Open-URI) and Encoding 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. -- Posted via http://www.ruby-forum.com/.