Carlos wrote:
> Carlos wrote:
>>> URI#escape escapes to UTF-8.  I need to escape to Latin-1 for Amazon's
> [...]
>> URI#escape escapes to UTF-8 because your string is UTF-8-encoded. Use 
> [...]
>> and then apply URI#escape.

I found Iconv, but my head was bent the wrong way. I was escaping, then 
converting instead of converting, then escaping.

The magic is here:
  URI.escape(Iconv.new('latin1', 'utf-8').iconv(value))

Now everything is happy.  Thanks for the quick response.

--dwf


-- 
Posted via http://www.ruby-forum.com/.