歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Fedora gedit 打開txt文件亂碼的解決

Fedora gedit 打開txt文件亂碼的解決

日期:2017/3/1 17:22:59   编辑:關於Linux
編碼格式不同,fedora打開windows下的文本文件經常出現亂碼。

解決辦法

終端輸入命令:

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

摘自 牧北的博客
Copyright © Linux教程網 All Rights Reserved