@[TO
首先,安装中文支持包language-pack-zh-hans:
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
参考:https://blog.csdn.net/weixin_44786530/article/details/93327253?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-9.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-9.control
第二,svn的中文路径还是无法识别,提示Can’t convert string from native encoding to ‘UTF-8’:
这时候解决方法为:
export LC_CTYPE=“zh_CN.UTF-8”
export LANG=“zh_CN.UTF-8”
完美解决!
参考:
https://blog.csdn.net/dazhi_100/article/details/17148987