I have couple of files on my /home dir with chinese names. I can read the chinese filenames under gnome and gnome-terminal without any problem.

But when I go into system console or when I remotely login to my computer through SSH with PuTTY, all I get are ???????????????? for the filenames. This becomes somewhat an irritation because I can't identify my chinese filenames remotely...

I have fedora installed on my computer also. The thing that baffles me is that when I remotely access my files using PuTTY, I can read the chinese filenames under fedora. But I can't see chinese names for the same files under Gentoo, when I log in using PuTTY.

There must be something I have missed in my configuration somewhere...

I have couple of files on my /home dir with chinese names. I can read the chinese filenames under gnome and gnome-terminal without any problem.

But when I go into system console or when I remotely login to my computer through SSH with PuTTY, all I get are ???????????????? for the filenames. This becomes somewhat an irritation because I can't identify my chinese filenames remotely...

For some reason the gentoo UTF-8 guide tells us to put the $LANG and $LC_ALL environment variables in ~/.profile. It didn't work for me. Instead, I now define these variables in ~/.bashrc. Now remote login gives me the filenames in Chinese!

For some reason the gentoo UTF-8 guide tells us to put the $LANG and $LC_ALL environment variables in ~/.profile.

I think ~/.profile should be .bash_profile . Definately, the .bashrc is also a good place.
BTW, I have a system without chinese support for I set locales.build wrong. But I can though ssh log on this computer, and display chinese, It seems that it does not depend on whether the computer supports chinese, just depends on your local computer's language support.

For some reason the gentoo UTF-8 guide tells us to put the $LANG and $LC_ALL environment variables in ~/.profile. It didn't work for me. Instead, I now define these variables in ~/.bashrc. Now remote login gives me the filenames in Chinese!

Another more "gentoo way" (IMO) to set the env vars in the /etc/env.d/99local, run env-update and re-login

Quote:

I still do not know a way to display chinese filenames under the system console. Don't think zhcon can do the job. But even so, I am happy enough with what it is now. Thank you guys!