刚才在ubuntu14.04中用gedit打开windows下的txt文件出现乱码
解决办法如下:
1.gsettings set org.gnome.gedit.preferences.encodings auto-detected
"[‘GB18030‘, ‘GB2312‘, ‘GBK‘, ‘UTF-8‘, ‘BIG5‘, ‘CURRENT‘, ‘UTF-16‘]"
2.gsettings set org.gnome.gedit.preferences.encodings shown-in-menu
"[‘GB18030‘, ‘GB2312‘, ‘GBK‘, ‘UTF-8‘, ‘BIG5‘, ‘CURRENT‘, ‘UTF-16‘]"
时间: 2024-10-14 04:10:16