UTF8

From Gnuffy

Jump to: navigation, search

Since more and more people use UTF8 and every distribution has its own way of configuring locales, here the little UTF8 howto.

  • First of all, activate it in your kernel:
 File Systems --> Native Language Support -->  <*>  NLS UTF8
  • Check with locales -a if the desired (utf8) locales are available. If not, you need to edit /etc/locale.gen and uncomment the line with your utf8-locale and run "locale-gen".

Place the following in /etc/profile. This does nothing but give some variables a value. Delete the old variable declarations (containing other locales) first.

 export LANG=en_US.UTF-8
 export LANGUAGE=en_US.UTF-8
 export LC_ALL=en_US.UTF-8
  • To start unicode for the linux console, add this to some initscript, probably to /etc/rc.local:
 /usr/bin/unicode_start
  • Activate the new locales settings:
 # source /etc/profile
 # unicode_start
  • If you are working in the linux console, adjust the keyboard mode:
 # kbd_mode -u
  • If you use startx to start Xorg, it will also use UTF8 from now on, but not every terminal does. If you want to use xterm, start it with xterm -u8; urxvt (Spaceman knows it as "rxvt-unicode") is a terminal especially designed for the use of UTF8.

I don't know how to have xdm using UTF8. Please add, if you do...

Personal tools