How to load a charset on RHEL 6.6 ?

Hi all,

am running the following code on a RHEL 6.6 box to list which charsets are loaded and which are available:

#!/usr/bin/perl -w
use strict;
use Encode;

my @list = Encode->encodings();
my @all_encodings = Encode->encodings(":all");

print "@list\n\n";
print "@all_encodings\n";

output :

ascii ascii-ctrl iso-8859-1 null utf-8-strict utf8

7bit-jis AdobeStandardEncoding AdobeSymbol AdobeZdingbat ascii ascii-ctrl big5-eten big5-hkscs cp1006 cp1026 cp1047 cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp37 cp424 cp437 cp500 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp858 cp860 cp861 cp862 cp863 cp864 cp865 cp866 cp869 cp874 cp875 cp932 cp936 cp949 cp950 dingbats euc-cn euc-jp euc-kr gb12345-raw gb2312-raw gsm0338 hp-roman8 hz iso-2022-jp iso-2022-jp-1 iso-2022-kr iso-8859-1 iso-8859-10 iso-8859-11 iso-8859-13 iso-8859-14 iso-8859-15 iso-8859-16 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-9 iso-ir-165 jis0201-raw jis0208-raw jis0212-raw johab koi8-f koi8-r koi8-u ksc5601-raw MacArabic MacCentralEurRoman MacChineseSimp MacChineseTrad MacCroatian MacCyrillic MacDingbats MacFarsi MacGreek MacHebrew MacIcelandic MacJapanese MacKorean MacRoman MacRomanian MacRumanian MacSami MacSymbol MacThai MacTurkish MacUkrainian MIME-B MIME-Header MIME-Header-ISO_2022_JP MIME-Q nextstep null posix-bc shiftjis symbol UCS-2BE UCS-2LE UTF-16 UTF-16BE UTF-16LE UTF-32 UTF-32BE UTF-32LE UTF-7 utf-8-strict utf8 viscii

My question is how to load a new charset (iso-8859-15) on my RHEL box ?

Linux is pretty flexible (unlike another OS I know).

In general same goes for most all Linux terminals.

My recommendation is that you do "man locale" and see if that is enough to get things going.

Obviously, changing a code page has to be a collaboration of terminal capabilities and fonts and such. But again, in Linux, things usually work and do just about everything you want. With that said, programs (possibly including the terminal program) tend to make a lot of assumptions....

1 Like

Did you consider the setfont command?

1 Like

Assuming that you want ISO-8859-15 console fonts

Confirm that /lib/kbd/unimaps/iso15.uni exists

If the file exist, add the following setting to /etc/sysconfig/i18n.

SYSFONTACM="iso15"
1 Like