jrri

Ubuntu语言支持设置:

安装中文支持包

sudo apt-get install language-pack-zh-hans

修改/etc/environment(在文件的末尾追加):

LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"

修改/var/lib/locales/supported.d/local(没有这个文件就新建,同样在末尾追加):

en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN GB2312

执行命令:

sudo locale-gen

 

 

解压缩中文乱码:

  安装unar: 

sudo apt-get install unar

    使用unar解压文件:

unar 文件名

 

 

设置gedit支持Windows下中文编码:

gsettings set org.gnome.gedit.preferences.encodings auto-detected"[\'GB18030\', \'GB2312\', \'GBK\', \'UTF-8\', \'BIG5\', \'CURRENT\',\'UTF-16\']"
gsettings set org.gnome.gedit.preferences.encodings shown-in-menu"[\'GB18030\', \'GB2312\', \'GBK\', \'UTF-8\', \'BIG5\', \'CURRENT\',\'UTF-16\']"

 



分类:

技术点:

相关文章:

  • 2021-09-06
  • 2022-12-23
  • 2021-05-31
  • 2021-08-23
  • 2021-06-25
  • 2021-12-12
  • 2021-12-10
  • 2021-07-02
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2021-05-20
  • 2022-02-23
  • 2021-10-08
  • 2021-11-26
相关资源
相似解决方案