windows txt/pdf 在Ubuntu中显示乱码

Ctrl+Alt+t 打开命令终端,

在终端输入以下命令:

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']"

再次打开TXT文件时,中文显示正常。


pdf中繁体字乱码:

sudo apt-get install poppler-data

你可能感兴趣的:(windows,ubuntu,终端)