User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

locale [2017/01/05 06:02] (current)
felixonmars created
Line 1: Line 1:
 +==== UTF-8 Environment for Ubuntu Server ====
 +echo "​en_US.UTF-8 UTF-8" > /​var/​lib/​locales/​supported.d/​local
 +update-locale LANG=en_US.UTF-8
 +Note: For some VPS the last command does not work, you have to add this to ~/.bashrc or /​etc/​bash.bashrc too:
 +export LANG=en_US.UTF-8
 +==== Pinyin Sorting for non-Chinese Locales ====
 +echo "​LC_COLLATE=zh_CN.utf8"​ >> /​etc/​locale.conf
 +echo "​LC_COLLATE=zh_CN.utf8"​ >> /​etc/​default/​locale
locale.txt ยท Last modified: 2017/01/05 06:02 by felixonmars