From: brabuhr@... Date: 2011-03-31T02:56:32+09:00 Subject: Re: Encoding issues when parsing HTML in 1.9 On Wed, Mar 30, 2011 at 12:15 PM, ctdev wrote: > I resolved this problem by opening and rewriting the original files > with a specified mode as described in Overbryd's answer: > > http://stackoverflow.com/questions/951891/how-can-i-convert-a-string-from-windows-1252-to-utf-8-in-ruby > > So: > > old = File.open("old", "r:windows-1252:utf-8") > new = File.open("new", "w+:utf-8") {|f| f.write(old.read)} Cool; thanks :-)