Find out which character set is used



When a program is running inside an terminal emulator like
xterm or Konsole the emulator uses some character set like
ISO Latin-1, ISO Latin-9 or UTF-8.

As far as I know the use of UTF-8 can be recognized by
examining the environment variables LC_ALL, LC_CTYPE
and LANG for the string UTF-8.

When UTF-8 is not used, something like Latin-1, Latin-9 or
some other character set is used.

My question is now:
How to find out which character set is used in a terminal?

For X11 programs there is a similar problem:
Which character set is used to encode file names in a
directory?

Greetings Thomas Mertes

Seed7 Homepage: http://seed7.sourceforge.net
Wikipedia: http://en.wikipedia.org/wiki/Seed7
Project page: http://sourceforge.net/projects/seed7

.



Relevant Pages

  • Re: Uterm 0.9 - A Unicode / UTF-8 Terminal Emulator
    ... | Uterm is a Unicode/UTF-8 Terminal Emulator for the Linux FrameBuffer Console ... | supporting a large character set. ... | supporting the Chinese/Japanese/Korean character sets. ...
    (comp.os.linux.development.apps)
  • Re: DECC : toupper/tolower performance
    ... > the character set, but note they are different in the two different ways I ... outpout on teh VMS box since the decterm froze just before the ... there is no logical on the host running the ... It is defined in terminal emulator ...
    (comp.os.vms)
  • Uterm 0.9 - A Unicode / UTF-8 Terminal Emulator
    ... Uterm is a Unicode/UTF-8 Terminal Emulator for the Linux FrameBuffer Console ... supporting a large character set. ... It is patterned after kon and jfbterm, popular and current terminal emulators ... supporting the Chinese/Japanese/Korean character sets. ...
    (comp.os.linux.development.apps)
  • Re: Find out which character set is used
    ... > When a program is running inside an terminal emulator like ... > xterm or Konsole the emulator uses some character set like ... The encoding is whatever the file was created with. ... to give many false matches. ...
    (comp.unix.programmer)