怎么把ubuntu默认的汉字编码UTF
1个回答
展开全部
Ubuntu下修改系统默认语言为简体中文:
1.首先安装中文的支持,安装:language-selector,language-env,language-pack-zh包
1
sudo apt-get install language-selector language-env language-pack-zh
2.然后使安装生效,配置区域
1
2
3
4
5
6
7
8
9
dpkg-reconfigure locales
Generating locales...
en_US.UTF-8... done
zh_CN.UTF-8... up-to-date
zh_HK.UTF-8... up-to-date
zh_SG.UTF-8... up-to-date
zh_TW.UTF-8... up-to-date
Generation complete.
Current default timezone: 'US/Eastern'.
Ubuntu里字符编码设置:
1.修改编码配置文件
1
2
3
4
5
gedit /var/lib/locales/supported.d/local
#在文件中添加如下内容:
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN. UTF-8 UTF-8
2.强制更新,使设置生效
1
sudo dpkg-reconfigure --force locales
1.首先安装中文的支持,安装:language-selector,language-env,language-pack-zh包
1
sudo apt-get install language-selector language-env language-pack-zh
2.然后使安装生效,配置区域
1
2
3
4
5
6
7
8
9
dpkg-reconfigure locales
Generating locales...
en_US.UTF-8... done
zh_CN.UTF-8... up-to-date
zh_HK.UTF-8... up-to-date
zh_SG.UTF-8... up-to-date
zh_TW.UTF-8... up-to-date
Generation complete.
Current default timezone: 'US/Eastern'.
Ubuntu里字符编码设置:
1.修改编码配置文件
1
2
3
4
5
gedit /var/lib/locales/supported.d/local
#在文件中添加如下内容:
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN. UTF-8 UTF-8
2.强制更新,使设置生效
1
sudo dpkg-reconfigure --force locales
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询