Debian or Ubuntu Chinese Language Support

Ubuntu Chinese Language Support

  • 编辑/etc/environment如下:

    1
    
    vi /etc/environment
    

添加如下:

1
2
3
4
LC_ALL="en_US.UTF-8"
LANG="zh_CN.UTF-8"
UNZIP='-O CP936"
ZIPINFO="-O CP936"
  • 重新生成语言设置

    1
    2
    
     sudo locale-gen  en_US en_US.UTF-8 zh_CN zh_CN.UTF-8
     sudo dpkg-reconfigure locales
    
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

## 中文支持

### vim中文支持

编辑~/.vimrc

``` bash
   set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
   set termencoding=utf-8
   set encoding=utf-8

中文支持

Built with Hugo
Theme Stack designed by Jimmy