From: "Sebastjan H." Date: 2012-05-21T21:45:29+09:00 Subject: Re: reading from and writing to a Unicode encoded file - issues when using Shoes ashbb shoeser wrote in post #1061501: > Hi Sebastjan, > > What platform and Shoes are you using? > > I downloaded your code (dup_app.rb) and replaced the following two > lines. > Then it worked with Shoes 3 (0.r1514) on my Windows 7. > > open(file, "r") {|fin| data=fin.read() } > open(file, "w:UTF-8") { |fout| fout.write(data) } if data > > ashbb Hi ashbb, I'm using Shoes 3 on Win7. I've just tried the above two lines and the result is still the same: - the content of the chosen file is removed - the encoding is changed to ANSI - the alert box is not displayed seba -- Posted via http://www.ruby-forum.com/.