From: Tom Link Date: 2008-12-16T01:22:33+09:00 Subject: Re: ruby 1.9.1: Encoding trouble: broken US-ASCII String > Also, if you've been using the -KU switch in Ruby 1.8 and working with > UTF-8 data, 1.9 may work pretty well for you Well, I'm still stuck with latin-1. It's interesting though that according to B Candler the fallback for unknown encodings should be 8- bit clean and that US-ASCII should be only used as last resort. Maybe it's just a cygwin thing? Could we/I please get more information on how exactly the charset is chosen depending on which environment variable and if this applies for cygwin too? It appears to me that neither LANG nor LC_TYPE have any effect on charset selection. But maybe I'm doing it wrong. Regards, Thomas.