Gnome Terminal Not Getting Locale Correctly

17 Jan 2013

The desktop computer I have in office is running Ubuntu 10.04, I have tried to set up its locale several times through .bashrc with something like this: LANG="en_US.UTF-8", and yet Gnome Terminal just couldn’t understand Chinese characters (it display ??? when I type in Chinese characters).

My problem is exactly this one. From that thread I found this instruction and solved this problem afterwards.

It seems to me that the problem is Gnome Terminal is always taking the system-wide locale setting every time it launches, or settings somewhere else that are set much earlier than your .bashrc is read. As a result, setting per user locale is not enough.

Therefore, after you set up your system-wide locale by following the instruction above or by trying this, remember to reboot your system to make the setting take effects for the whole system.