Sebastjan H. wrote in post #1061483:
> Hi,
>
> something goes wrong with this block of code when I use Shoes to package
> an app:
>
>>> data=nil
>>> open("data.txt", "rb:UTF-16LE") {|fin| data=fin.read() }
>>> open("data.txt", "wb:UTF-8")  { |fout| fout.write(data) } if data
>
> I've attached the entire script. If I comment out this block the
> jibberish appears again in the file. However, If I let run this block of
> code, the content is deleted and the Alert is not displayed.
>
> Could someone take a look where I went wrong. I am still learning Shoes
> too:)
>
> kind regards,
> Seba

one more note: the same code as attached (without the Shoes elements) 
runs ok just as a script run from a command line.

-- 
Posted via http://www.ruby-forum.com/.