1. gedit查看txt中文亂碼
打開終端輸入:
gsettings set org.gnome.gedit.preferences.encodings auto-detected"['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT','UTF-16']"
gsettings set org.gnome.gedit.preferences.encodings shown-in-menu"['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT','UTF-16']"
解決亂碼問題.
2. rar壓縮文件中文亂碼
sudo apt-get remove rar
sudo apt-get install unrar
3. linux liboffice亂碼
,linux下默認是 UTF-8編碼的,而windows的記事本一般是GBK或者GB2312編碼的,所以會產生亂碼的。
當打開文件時選擇GB-18030即可打開