ubuntu 19.04 gedit win txt 乱码 原
欢迎来到阿八个人博客网站。本 阿八个人博客 网站提供最新的站长新闻,各种互联网资讯。 喜欢本站的朋友可以收藏本站,或者加QQ:我们大家一起来交流技术! URL链接:https://www.abboke.com/jsh/2019/0627/4047.html
>>>
默认ubuntu 使用的是UTF-8编码,因此打开win txt 文件是乱码。
1、安装dconf-editor ,如果有就不用安装了 。
sudo apt-get install dconf-editor
2、运行dconf-editor,在org/gnome/gedit/preferences/encodings中,设candidate-encodings的值为
['UTF-8', 'GB2312', 'CURRENT', 'ISO-8859-15', 'UTF-16']
我看网上很多都写的auto-detected ,我的版本是19.04 ,是candidate-encodings
感觉有点像window 的注册表,难道是殊途同归。