User Tools

Site Tools


locale

Differences

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 ====
 +<​code>​
 +echo "​en_US.UTF-8 UTF-8" > /​var/​lib/​locales/​supported.d/​local
 +locale-gen
 +update-locale LANG=en_US.UTF-8
 +</​code>​
 +Note: For some VPS the last command does not work, you have to add this to ~/.bashrc or /​etc/​bash.bashrc too:
 +<​code>​
 +export LANG=en_US.UTF-8
 +</​code>​
 +
 +==== Pinyin Sorting for non-Chinese Locales ====
 +Arch:
 +<​code>​
 +echo "​LC_COLLATE=zh_CN.utf8"​ >> /​etc/​locale.conf
 +</​code>​
 +Ubuntu:
 +<​code>​
 +echo "​LC_COLLATE=zh_CN.utf8"​ >> /​etc/​default/​locale
 +</​code>​
  
locale.txt ยท Last modified: 2017/01/05 06:02 by felixonmars