Tell me more ×
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.

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

2 Answers

Start it with the desired charset.

env LANG=xx_XX.utf8 gnome-terminal
share|improve this answer

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. – htor Jan 2 '12 at 14:53

Your Answer

 
discard

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.