解决gedit打开txt文件乱码问题and解决pdf中文不显示的问题

解决gedit打开txt文件乱码问题
用Configuratio Editor (命令:gconf-editor),修改apps->gedit-2->preferences->encoding中的 auto_detected, 把GB18030,GBK,GB2312等添加进去就行了

当然还要将添加的这几项移动到最上面就ok了,当然对于.c .h文件也是可以的!!

Good Luck!!

解决pdf中文不显示的问题::

安装poppler-data,cmap-adobe-cns1和cmap-adobe-gb1

打开文件“/etc/fonts/conf.d/49-sansserif.conf”
将18行的<string>'''sans-serif'''</string>换成<string>'''sans serif'''</string>,

在打开某些PDF文件时出现中文方块时一般都是这一步没有做

原文地址:https://www.cnblogs.com/shaoguangleo/p/2805885.html