locale

apt-get install locales
(python36) root@7d7740a6ef26:~/ActivityNet/Crawler# locale
LANG=
LANGUAGE=
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=zh_CN.UTF-8
(python36) root@7d7740a6ef26:~/ActivityNet/Crawler# locale -a
C
POSIX
zh_CN.utf8
(python36) root@7d7740a6ef26:~/ActivityNet/Crawler# locale -av
locale: zh_CN.utf8      archive: /usr/lib/locale/locale-archive
    title | Chinese locale for Peoples Republic of China
    email | [email protected]
 language | Chinese
territory | China
 revision | 0.1
     date | 2000-07-25
  codeset | UTF-8
(python36) root@7d7740a6ef26:~/ActivityNet/Crawler# locale-gen
Generating locales (this might take a while)...
  zh_CN.UTF-8... done
Generation complete.
(python36) root@7d7740a6ef26:~/ActivityNet/Crawler# update-locale
(python36) root@7d7740a6ef26:~/ActivityNet/Crawler# dpkg-reconfigure locales
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuring locales
-------------------

區域設置(locale)是一種在多種語言之間切換的框架,用戶可以通過它來設定自己的語言、國家、字符
集、字符串排序方式等。

請選擇需要生成的區域設置。通常應當選擇 UTF-8
字符集的區域設置,特別是對於新安裝的系統。其他的字符集一般用於兼容舊系統和舊軟件。

  1. 全部區域設置               168. es_BO ISO-8859-1               335. mni_IN UTF-8
  2. aa_DJ ISO-8859-1                 169. es_BO.UTF-8 UTF-8              336. mr_IN UTF-8
  3. aa_DJ.UTF-8 UTF-8                170. es_CL ISO-8859-1               337. ms_MY ISO-8859-1
  4. aa_ER UTF-8                      171. es_CL.UTF-8 UTF-8              338. ms_MY.UTF-8 UTF-8
  5. aa_ER@saaho UTF-8                172. es_CO ISO-8859-1               339. mt_MT ISO-8859-3
  6. aa_ET UTF-8                      173. es_CO.UTF-8 UTF-8              340. mt_MT.UTF-8 UTF-8
  7. af_ZA ISO-8859-1                 174. es_CR ISO-8859-1               341. my_MM UTF-8
  8. af_ZA.UTF-8 UTF-8                175. es_CR.UTF-8 UTF-8              342. nan_TW UTF-8
  9. agr_PE UTF-8                     176. es_CU UTF-8                    343. nan_TW@latin UTF-8
  10. ak_GH UTF-8                     177. es_DO ISO-8859-1               344. nb_NO ISO-8859-1
  11. am_ET UTF-8                     178. es_DO.UTF-8 UTF-8              345. nb_NO.UTF-8 UTF-8
  12. an_ES ISO-8859-15               179. es_EC ISO-8859-1               346. nds_DE UTF-8
  13. an_ES.UTF-8 UTF-8               180. es_EC.UTF-8 UTF-8              347. nds_NL UTF-8
[More] 
root@7d7740a6ef26:/etc/default# vim locale

reference1
reference2

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章