From: Austin Ziegler Date: 2006-06-27T02:46:23+09:00 Subject: Re: Unicode roadmap? On 6/26/06, Christian Neukirchen wrote: > "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. Oh, please, yes. I get tired of libraries breaking because people don't use "rb" and I'm on Windows. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca