文章目錄
- 1.設定chrome瀏覽器的flash外掛程式
- 2.設定系統字型
今天在Ubuntu12.10下使用chrome和chromium訪問一個flash網站,可以播放flash來,但中文字元全是是亂碼。
解決方案如下:
1.設定chrome瀏覽器的flash外掛程式
開啟Chrome瀏覽器,輸入chrome://plugins/,找到Adobe Flash Player (2 files) ,會看到有兩個Flash外掛程式。
需要特別注意這兩個外掛程式的位置,從位置路徑中可以看出一個是google的,另一個是系統的。
-----------------------------
名稱: Shockwave Flash
版本: 11.6.602.180
位置: /opt/google/chrome/PepperFlash/libpepflashplayer.so
------------------------------
名稱: Shockwave Flash
版本: 11.2 r202
位置: /usr/lib/flashplugin-installer/libflashplayer.so
------------------------------
啟用11.2 r202版本(/usr/lib/flashplugin-installer/libflashplayer.so),停用Google chrome內建的版本
(/opt/google/chrome/PepperFlash/libpepflashplayer.so)。
2.設定系統字型
使用命令:sudo gedit /etc/fonts/conf.d/49-sansserif.conf
開啟字元設定檔案,將edit標籤下的sans-serif修改為sans,儲存並退出。
至此全部安裝完畢。重新啟動瀏覽器即可顯示正常。
------------------------
附:修改後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</string> </edit> </match></fontconfig>
原始檔案內容:
<?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>