Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently, I opened my gnome terminal and the default charset is gb2312.

How can set the default charset to utf8 in Gnome terminal?

I checked the preference setting but seemed not to find it.

Thanks for any help!

share|improve this question

I found the answer buried in an Ubuntu forums thread (I'd asked a similar question here):

gconftool --set --type=string /apps/gnome-terminal/profiles/Default/encoding en_US.UTF-8

share|improve this answer
+1 tried all other solutions suggested here but this one did the trick. – In-Ho Yi Dec 8 '14 at 18:39
This worked for me! – Robert T. McGibbon Mar 31 '15 at 21:50
+1. This is the only solution that worked for me! All the other stackexchange answers to this question don't work. – user855 May 6 '15 at 22:45
If you come to this answer and you've "tried it all", this is your last stop. Only thing that worked for me in Ubuntu 12.04 – boltup_im_coding Jan 28 at 18:57

Simply right-click anywhere on the terminal and select Show Menubar and from the menu bar you select Terminal > Set Character Encoding > Unicode (UTF-8). At least this works using gnome-terminal 3.2.1.

share|improve this answer
But it won't keep the change next time you opened it. – xiaohan2012 Jan 2 '12 at 13:03
Ok, but what's the output of locale? I think you need to set the systems locale to an UTF-8 variant e.g en_US.UTF-8 in order to make it permanent. To list all enabled locales, run locale -a. To enable a locale, uncomment it in /etc/locale.gen and run locale-gen to update the list. – user13742 Jan 2 '12 at 14:53
My locale is en_US.UTF-8 but I'm still not getting UTF-8 encoding when I start gnome-terminal. – Michael Mior Oct 16 '13 at 16:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.