Chinese garbled characters in chrome flash in Ubuntu

Source: Internet
Author: User
Document directory
  • 1. Set the flash plug-in for Chrome browser
  • 2. Set the system font

Today, in ubuntu12.10, chrome and chromium are used to access a flash website. Flash can be played, but Chinese characters are all garbled characters.

The solution is as follows:

1. Set the flash plug-in for Chrome browser

Open the Chrome browser, enter chrome: // plugins/, and find Adobe Flash Player (2 files). Two flash plug-ins are available.

Pay special attention to the location of these two plug-ins. From the location path, we can see that one is Google and the other is system.


-----------------------------
Name: Shockwave Flash
Version: 11.6.602.180
Location:/OPT/Google/chrome/Pepperflash/libpepflashplayer. So
------------------------------
Name: Shockwave Flash
Version: 11.2 r202
Location :/Usr/lib/flashplugin-Installer/Libflashplayer. So
------------------------------
Enable version 11.2 r202 (/usr/lib/flashplugin-installer/libflashplayer. So) and disable the Google Chrome version.

(/Opt/Google/Chrome/pepperflash/libpepflashplayer. So ).

2. Set the system font

Run sudo gedit/etc/fonts/CONF. d/49-sansserif.conf.

Open the character setting file, modify sans-serif under the Edit Tag to SANS, save and exit.

So far, all installation is complete. Restart the browser.
------------------------

Appendix: Modified content of 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>

Original file content:

<?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>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.