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.

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.
Similarly, in windows, simplified Chinese use gb2312 encoding (or GBK, gb18030), and in Linux use utf8 encoding!

Solution to Garbled text:

First, right-click the applications menu and choose edit menu from the shortcut menu.
In the menu (main menu) dialog box, select System Tools-Configuration
Editor (configuration Editor), which is enabled from the applications menu.

Enable
/Apps/gedit-2/preferences/encodings/double-click auto_detected on the right, click Add in the pop-up dialog box, add
The value of values is gb18030 or gb2312. After confirming the value, select and click the up button to move it to the first place. Similarly, set show_in_menu and
Set gb18030 or gb2312 to the first place!

Type 2: press the combination key Alt + F2 to open the "run application" dialog box, enter gconf-editor, run, and enter the configuration Editor: Enable
/Apps/gedit-2/preferences/encodings/double-click auto_detected on the right, click Add in the pop-up dialog box, add
The value of values is gb18030 or gb2312. After confirming the value, select and click the up button to move it to the first place. Similarly, set show_in_menu and
Set gb18030 or gb2312 to the first place!

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 tape like Youku
Yes
On the flash webpage, 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 characters on the flash
All are boxes!

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:

<Match target = "pattern">

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

<String> wqy-zenhei </string>

</Test>

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

<String> wqy-zenhei </string>

</Test>

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

<String> monospace </string>

</Test>

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

<String> wqy-zenhei </string>

</Edit>

</Match>

(Method reference: http://blog.csdn.net/liujin4049/archive/2008/06/06/2518507.aspx)

Ii. garbled information about the songs in rhythmbox:

Install mutagen: sudo apt-Get install Python-mutagen first

Then go to your MP3 directory. For example, if my song is placed in the system's music folder, enter CD/home/holmesrain (this is my username, and you need to change it to your username) /music

Execute the full command to convert: mid3iconv-e GBK *. MP3

Use rhythmbox to re-import the song folder!

(Method reference: http://hi.baidu.com/luckdst/blog/item/071bd0270fb67e0b918f9d1c.html)

Iii. garbled wine:

Select Browse C:/driverfrom the wine menu, enter the Windows folder, and double-click the regedit.exe file.

Search: logpixels

The row should be: HKEY_LOCAL_MACHINE/system/CurrentControlSet/hardware profiles/current/software/Fonts

Replace the following:

"Logpixels" = DWORD: 00000060

Changed:

"Logpixels" = DWORD: 00000070

Search: fontsubstitutes

The row should be: HKEY_LOCAL_MACHINE/software/Microsoft/Windows NT/CurrentVersion/fontsubstitutes

Replace the following:

"MS shell DLG" = "tahoma"

"MS shell DLG 2" = "tahoma"

Changed:

"MS shell DLG" = "simsun"

"MS shell DLG 2" = "simsun"

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.