Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

How can I check what encoding (ASCII, UTF-8, UTF-16 etc) my Terminal uses?

It shouldn't matter, but I am using Konsole on KDE3.5.

share|improve this question
What exact version of Konsole are you using? – Blue Peppers Aug 22 '10 at 23:43
"uses" or "supports"? it should support any of those encodings. – hop Aug 23 '10 at 0:06
up vote 1 down vote accepted

From a Unicode and UTF-8 FAQ for UNIX/Linux: You can get a list of all locales installed on your system (usually in /usr/lib/locale/) with the command locale -a. Set the environment variable LANG to the name of your preferred locale.

Konsole supports whatever your system supports - the important thing is that you export LANG in your shell so that the programs you run display their characters using the correct locale.

share|improve this answer

Konsole supports the encodings which Qt knows how to convert to/from Unicode. It uses the QTextCodec class (see documentation which lists the supported encodings) which includes many but not necessarily all possible encodings which you may have installed on your system.

When you run Konsole, you can select (in the Advanced tab) an encoding from those which are tabulated in its runtime tables.

Illustration of Konsole's encoding selection

If you need an encoding which Konsole does not support, some people suggest that luit can be useful, e.g., in IBMgraphics.

share|improve this answer

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.