Brian Candler wrote:
> Matt Beedle wrote:
>> Iconv.iconv('iso-8859-1', 'utf-8', string)
>> 
>> Iconv::IllegalSequence: "\344ftsf\374hrer"
> 
> You just got the args the wrong way round. 'to' comes before 'from'.
> (ri Iconv.iconv)
> 
>>> RUBY_VERSION
> => "1.8.7"
>>> require 'iconv'
> => true
>>> string = "Gesch\344ftsf\374hrer"
> => "Gesch\344ftsf\374hrer"
>>> puts Iconv.iconv('utf-8', 'iso-8859-1', string).first
> Geschäftsführer

lol, ok, now I feel stupid.  I've been messing around with this for 
hours!  Thanks very much.
-- 
Posted via http://www.ruby-forum.com/.