From: Bali Bali Date: 2009-07-30T11:29:09+09:00 Subject: How to save string to a file as UTF-8 Below code: -- s1 = "good" File.new("test.xml", "w+") << s1 -- It always give a file ANSI encoded. How can I get it UTF-8 encoded? Thanks. -- Posted via http://www.ruby-forum.com/.