Purpose of this HOWTO is to show how to setup properly Pure [ISO] and Virtual [UTF] Terminals with syscons + xterm + urxvt + screen with English Language for manuals, commands and so, but withcorrectly displaing localized characters.

This example is based on polish language/characters, but may also be used with any other language, just change pl_PL.ISO8895-2 to You proper encoding.

Result of properly set localization [these characters are displayed and typed correctly]:

ę ó ą ś ł ż ź ć ń

We have to face little conflict, ISO under Pure Terminal and UTF8 under Virtual Terminal.

Also screen under pure terminal displays encodings fine but needs also this setting:/etc/zprofile/etc/profile/etc/csh.login

Code:

LC_ALL=en_US.ISO8859-1

VIRTUAL TERMINAL [X11] +/- SCREEN // en_US.UTF-8

Setting encoding/localizing X11 Virtual Terminal is little enigmatic to me, although I have found a way to have it localized properly. For example I need to export LC_ALL=en_US.UTF-8 in ~/.xinitrc file which is very strange to me.

~/.xinitrc

Code:

export LC_ALL=en_US.UTF-8
exec fluxbox

/etc/zprofile/etc/profile/etc/csh.login

Code:

LC_ALL=en_US.UTF-8

~/.Xdefaults

Code:

urxvt.imLocale: en_US.UTF-8

So we have a problem, we cannot set LC_ALL both to en_US.UTF-8 and to en_US.ISO8859-1 :/ we also cannot use $TERM varible to set our encoding properly, because $TERM will be changed by screen to screen, so this will not work:

Of course You will need to change all export words to setenv and also remove '=' if You use csh/tcsh shell, but {t}csh users know that

__________________religions, worst damnation of mankind"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus TorvaldsLinux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.vermaden's:linksresourcesdeviantartspreadbsd