ubuntu 19.04 gedit win txt 乱码

默认ubuntu 使用的是UTF-8编码,所以打开win txt 文件是乱码。ubuntu

一、安装dconf-editor ,若是有就不用安装了 。 编码

sudo apt-get install dconf-editorget

二、运行dconf-editor,在org/gnome/gedit/preferences/encodings中,设candidate-encodings的值为 

                ['UTF-8', 'GB2312', 'CURRENT', 'ISO-8859-15', 'UTF-16']it

我看网上不少都写的auto-detected ,个人版本是19.04 ,是candidate-encodings  乱码

感受有点像window 的注册表,难道是异曲同工。date

相关文章
相关标签/搜索