From: Dave Thomas Date: 2008-12-16T01:23:25+09:00 Subject: Re: ruby 1.9.1: Encoding trouble: broken US-ASCII String On Dec 15, 2008, at 10:16 AM, Brian Candler wrote: > It seems to go against DRY to have to write "r:binary" or "rb:binary" > when opening lots of binary files. But if I remember to use > #!/usr/bin/ruby -Knw everywhere that should be OK. You used to have to do that. In recent HEADS, rb sets binary encoding automatically (unless overridden). Dave