On Mon, Mar 19, 2007 at 01:36:48PM -0700, Andrew Lentvorski wrote: > John Oliver wrote: > >I just had someone ask me why none of her files in Chinese, Japanese, > >etc. no longer show up in the correct character sets. Everything is > >UTF-8, and up until this morning, everything "worked right". She could, > >for example, more a file with Chinese characters and see it correctly, > >then more a file with Japanese characters and see it correctly. I would > >have assumed that something would have to change the LANG variable for > >that to work, but don't see how. > > LANG could be the culprit. LOCALE could also be the culprit.
AFAIK, LANG never changes. It's always en_US.UTF-8 I don't see how more-ing a given file could somehow "know" the "correct" character set and change LANG for it, and then change it back. As for LOCALE... I noticed that when I ssh into her machine and su to her account and run locale, I get [EMAIL PROTECTED] ~]$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= In a terminal on that box (under X) everything is "C" Where are those values set? > However, are you *sure* her files are UTF-8? I guess! Everything "worked right" last week. > Take a look at the files in Firefox where you can set the character set > via a menu to make sure. > > Quite often Chinese and Japanese files are not in UTF-8 (especially if > the originate from China or Japan). Everything here is, since it's all for translation work... matching sentences in at least two different languages. -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
