From: Gilles Devaux Date: 2011-02-17T09:07:55+09:00 Subject: Re: ruby 1.9.2 unicode with hex codepoint problem Stupid of me. The file is indeed ISO-8859-1 (some other characters are encoded this way) just not this one, it's escaped. This: l.gsub!(/\\x([0-9a-f]{2})/i) { $1.hex.chr } # or in ruby 1.9, if you want to tag the encoding: l.gsub!(/\\x([0-9a-f]{2})/i) { $1.hex.chr("ISO-8859-1") } is exactly what I want. Thanks. -- Posted via http://www.ruby-forum.com/.