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