From: Marcin Wolski Date: 2010-05-25T12:51:40+09:00 Subject: Re: default encoding UTF 8? Roger Pack wrote: > Is this expected? > >>> File.read('picture.jpg').encoding > => # >>> Encoding.default_external > => # > > Shouldn't default_external be "ASCII-8BIT"? Who is setting my > default_external? > > Sorry a but confused. > Thanks! > -rp "The default external encoding is something different: this is the encoding that Ruby uses by default when reading from files and streams. The default external encoding is global to the Ruby process and does not change from file to file. Normally, the default external encoding is set based on the locale that your computer is configured to. " - From "the ruby programming language" book -- Posted via http://www.ruby-forum.com/.