Hello,
tested on windows:

open("data.txt", "rb:UTF-16LE") {|fin|
  open("odata.txt", "wb:UTF-8") { |fout|
    fout.write(fin.read())
  }
}

bye

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