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
-- 
Posted via http://www.ruby-forum.com/.