From: Brian Candler Date: 2008-12-16T05:45:18+09:00 Subject: Re: ruby 1.9.1: Encoding trouble: broken US-ASCII String Yukihiro Matsumoto wrote: > open(path, "rb") is your friend. It sets encoding to binary. Thanks. "rb" is now performing two jobs then - prevent line-ending translation (on those platforms which do it), and set encoding to binary. Something to remember. -- Posted via http://www.ruby-forum.com/.