From: "Sebastjan H." Date: 2012-05-23T03:06:29+09:00 Subject: Re: reading from and writing to a Unicode encoded file - issues when using Shoes ashbb shoeser wrote in post #1061656: > Hi Sebastjan, > >> I know the main issue is, that my input file is Unicode encoded > Oh, I see. > Why not using nkf? > > Try out the following: > > require 'nkf' > Shoes.app do > extend NKF > file = ask_open_file > data = IO.read file > para nkf('-W16w', data) > end I've tried incorporating this into my script, but I guess my knowledge isn't sufficient:) Furthermore, I've tried replicating the whole thing on Ubuntu and the app is not as large and it loads extremely fast. However, the code still doesn't tun properly with Shoes. And the files are aromatically converted to UTF-8 as soon as they are stored on Ubuntu, so I can't really replicate anything:( kind regards, seba -- Posted via http://www.ruby-forum.com/.