From: Luther Thompson Date: 2009-02-17T22:55:23+09:00 Subject: Re: invalid byte sequence in US-ASCII (ArgumentError) Tom Link wrote: > When I recently stumbled over not so different problems (one of which > is described here [1]) it was because the external encoding (see > Encoding.default_external) defaulted to US-ASCII on cygwin because > ruby191RC0 ignored the windows locale and the value of the LANG > variable -- the part with the windows locale was fixed in the > meantime. AFAIK if ruby 191 cannot determine the environment's locale, > it defaults to US-ASCII which causes the described problem if a > character is > 127. Actually, I always set my LANG to C. Since my original post, I found that I had forgotten to set my LC_CTYPE to en_US.UTF-8, which is Ubuntu's default. After fixing that, I still got the same error, but with "UTF-8" instead of "US-ASCII". I believe the metadata in that text file must be binary code that was put there by some word processor, because I remember seeing "Helvetica" somewhere in there. Luther -- Posted via http://www.ruby-forum.com/.