To set up a Debian Linux machine to handle UTF-8 in a shell or console app do the following.
First, use dselect or whatever tool you like to find the Japanese font packages for X and install em.
then choose en_US.UTF-8
Test by executing the folowing in a shell:
it should say
If not try just
it should have UTF-8 for everything like:
if not then Add the follwoing to .bashrc and re-source it (e.g. get a new login shell, or execute bash)
once that is all set to UTF-8 then change your shells (xterm, rxvt) to use:
That is it. I had to exit X11 and re-login to get X11 to take these settings
so that clicking my icon for xterm launched uxterm WITH the correct environment
After this all console apps that can handle UTF-8 (like vim) display UTF-8