Ubuntu下Chrome瀏覽器flash中文亂碼

來源:互聯網
上載者:User
文章目錄
  • 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>

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.