From: "Sebastjan H." Date: 2012-05-21T23:57:10+09:00 Subject: Re: reading from and writing to a Unicode encoded file - issues when using Shoes ashbb shoeser wrote in post #1061510: > Hi Sebastjan, > > Ah, sorry. Try out the following again: > > data=nil > #open(file, "r") {|fin| data=fin.read() } > data = IO.read(file).force_encoding("UTF-8") > open(file, "w:UTF-8") { |fout| fout.write(data) } if data > > ashbb hi, it still not working. Now the process runs through, but the stuff that is written in the file is mixed with the legacy content and the new content is again jibberish. I am afraid I can't pinpoint the issue being a complete beginner. It works fine without Shoes. Does the code work for you? regards, seba -- Posted via http://www.ruby-forum.com/.