天天看點

Ubuntu浏覽FLASH時出現中文亂碼的解決方法

打開應用程式->附件->終端

輸入:

cd /etc/fonts/conf.d/

備份配置檔案

sudo cp 49-sansserif.conf 49-sansserif.conf_backup

編輯配置檔案(需要輸入密碼,密碼不會顯示,不要輸入錯誤)

sudo gedit ./49-sansserif.conf

打開之後看見檔案内容如下:

<?xml version="1.0"?>

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>

<!--

  If the font still has no generic name, add sans-serif

 -->

    <match target="pattern">

        <test qual="all" name="family" compare="not_eq">

            <string>sans-serif </string>

        </test>

        <test qual="all" name="family" compare="not_eq">

            <string>serif </string>

        </test>

        <test qual="all" name="family" compare="not_eq">

            <string>monospace</string>

        </test>

        <edit name="family" mode="append_last">

            <string>sans-serif </string>

        </edit>

    </match>

</fontconfig>

上邊三處紅色标記的代碼都是字型名稱,将這三處标紅的字型名稱換為wqy-zenhei或者系統中支援的其他名稱即可解決問題。