On Wed, Mar 30, 2011 at 12:15 PM, ctdev <ctdev421 / gmail.com> 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 :-)