Solve the Ubuntu garbled Problem

Source: Internet
Author: User
Tags rhythmbox
Garbled text can be seen everywhere in Ubuntu, txt Garbled text written in Windows, Flash Garbled text in webpages, Song information Garbled text in Rhythmbox, mplayer Subtitles Garbled text, and Wine Garbled text. 1. Solve txt garbled characters: When a txt text file that can be opened in Windows is opened in gedit in Ubuntu, Chinese characters are garbled characters, which are mainly caused by different encoding methods, for Simplified Chinese in Windows, use gb2312 encoding (or gbk,

Garbled text can be seen everywhere in Ubuntu, txt Garbled text written in Windows, Flash Garbled text in webpages, Song information Garbled text in Rhythmbox, mplayer Subtitles Garbled text, and Wine Garbled text.

I. Solve txt garbled characters:

When a txt file that can be opened in Windows is opened in gedit in Ubuntu, Chinese characters are garbled because of different encoding methods, for Simplified Chinese in Windows, use gb2312 encoding (or gbk, gb18030) and utf8 encoding in Linux!

Solution to Garbled text:

First, right-click the Applications Menu and choose Edit Menu ). in the Main Menu dialog box, select System Tools-Configuration Editor and enable it from the Applications Menu.

Turn on/apps/gedit-2/preferences/encodings/double-click auto_detected on the right, click Add in the pop-up dialog box, Add Values value for GB18030 or GB2312, OK, select, click the Up button to move it to the first place. Similarly, set show_in_menu and place GB18030 or GB2312 first!

Type 2: press ALT + F2 to open the "run application" dialog box, enter gconf-editor, run, and enter the configuration editor: turn on/apps/gedit-2/preferences/encodings/double-click auto_detected on the right, click Add in the pop-up dialog box, Add Values value for GB18030 or GB2312, OK, select, click the Up button to move it to the first place. Similarly, set show_in_menu and place GB18030 or GB2312 first!

Ii. Flash garbled characters on the webpage:

The installed Ubuntu default browser is Firefox, but Ubuntu does not install copyrighted software such as Flash by default. So when you browse a webpage with Flash, such as youku, firefox will prompt you to install the missing plug-in. After you choose to install the Flash plug-in, the Flash is displayed, but you will find that, the Chinese text above Flash is a box!

Let's talk about the solution:

Terminal input:

Cd/etc/fonts/conf. d/

Sudo cp 49-sansserif.conf 49-sansserif.conf_backup

Sudo gedit./49-sansserif.conf

Replace "sans-serif" after "1st", "2", and "4" with the name of the Chinese font in your system,

For example: My system installed wqy-zenhei.ttf (wenquanyi, Ubuntu Chinese built-in), I use wqy-zenhei to replace the above said field, the results are as follows:



Wqy-zenhei


Wqy-zenhei

Monospace


Wqy-zenhei

Related Article

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.