From: Seebs Date: 2010-02-19T07:05:26+09:00 Subject: Re: RTranslate Gem (Open-URI) and Encoding On 2010-02-18, The Chromag wrote: > I'm using the rtranslate gem (sishen-rtranslate) to handle translating > some text. It uses open-uri to scrape Google Translate. If I attempt > to translate text from English to Spanish it outputs some garbage > characters. > Translating the word "where" returns "d��nde" instead of "d�nde" The amusing part is that the first one looks fine to me. I suspect this means that you're getting UTF8 when you expect something in some particular encoding, so you should be specifying encodings... -s -- Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!