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