歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu下Evince中文亂碼解決方法

Ubuntu下Evince中文亂碼解決方法

日期:2017/2/28 15:48:20   编辑:Linux教程
網上有很多解決Linux下PDF中文亂碼的問題,這裡總結一個最簡單的解決方法。

1. 安裝poppler-data

  1. sudo apt-get install poppler-data

2. 修改系統配置文件(/etc/fonts/conf.avail/49-sansserif.conf)

  1. <edit name="family" mode="append_last">
  2. <string>sans-serif</string>
  3. </edit>
  4. 修改為:
  5. <edit name="family" mode="append_last">
  6. <string>SimSun</string>
  7. </edit>
這裡需要注意的是,確認你的機器上的宋體是SimSun,這可以通過命令fc-list :lang=zh來查看。
  1. 宋體,SimSun:style=Regular

經過上面兩步後,基本可以解決絕大部分的亂碼問題。

Copyright © Linux教程網 All Rights Reserved