FreeBSD localization on UTF-8

Open/etc/login.conf, find in it:
russian|Russian Users Accounts: :charset=KOI8-R: :lang=ru_RU.KOI8-R:

:tc=default:

and change to

russian|Russian Users Accounts: :charset=UTF-8: :lang=ru_RU.UTF-8:

:tc=default:

And we perform to save the changes made:
deathstar# cap_mkdb /etc/login.conf

Add:
to localize bash to the/etc/profile file:

LANG=ru_RU.UTF-8; export LANG LC_ALL=ru_RU.UTF-8; export LC_ALL

MM_CHARSET=UTF-8; export MM_CHARSET

to localize csh to/etc/csh.login:

setenv LANG ru_RU.UTF-8
setenv MM_CHARSET UTF-8

Share