From: Christian Neukirchen Date: 2006-06-27T02:41:56+09:00 Subject: Re: Unicode roadmap? "Austin Ziegler" writes: > I would much rather keep the API -- and the class library -- simple. I > would rather do this: > > st = File.open("file.txt", "rb", :encoding => :utf8) { |f| f.read } > > or > > bv = File.open("file.txt", "rb") { |f| f.read } > st = bv.to_encoding(:utf8) Partly off-topic, but important nevertheless: *Then* it's the right time to drop that damn "rb" by making it default and let the people stuck in the \r\n-age use :encoding => "win-ansi" or "dos" or whatever. > -austin -- Christian Neukirchen http://chneukirchen.org