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/.