In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces you how to solve the Ubuntu garbled incident, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The most depressing thing Ubuntu garbled, so I learned to study the Ubuntu garbled, here to you a detailed introduction of Ubuntu garbled and solutions to the problem, I hope to be useful to you. The most frustrating thing about using Ubuntu garbled is that there are flash garbled, TXT document garbled, song information garbled, mplayer player subtitle garbled, wine garbled and so on. In the past, I only encountered garbled codes in the player when installing 8.04 TXT 8.10, but after installing 9.04, I found that the TXT files were also garbled, and the level of garbled was higher than that of Windows. In order to use the TXT file saved under Windows, you have to find various ways. These are common.
Terminal input: gconf-editor (I feel a bit similar to the registry under Windows), open it in turn; apps-gedit2-preferences- encodings double-click the "auto_detected" on the right to enter: gb18030, click up to move it to the top. In this way, the TXT will not be garbled.
Input in the terminal: sudo gedit / etc/fonts/conf.d/49-sansserif.conf
Replace the first, second and fourth sans-serif with the names of Chinese fonts in your own system.
For example, if wqy-zenhei.ttf (Wenquanyi, which comes with ubuntu in Chinese) is installed in the system, the above fields are replaced by wqy-zenhei. The result is as follows:
Wqy-zenhei
Wqy-zenhei
Monospace
Wqy-zenhei
Just save and exit and FLSH will be fine.
Install mutagen:sudo apt-get install python-mutagen
Then go to your MP3 directory, for example, put my songs in the music folder of the system and enter: cd / home/holmesrain (this is my user name, you need to change to your user name) / music
Execute the conversion as a full command: mid3iconv-e GBK * .mp3. After the completion of import with the player, there will be no Ubuntu garbled.
Terminal execution: sudo gedit / etc/fstab, find this line:
/ dev/scd0 / media/cdrom0 udf,iso9660 user,noauto 0 0
Add an iocharset=utf8 sentence to options, as follows: / dev/scd0 / media/cdrom0 udf,iso9660 user,noauto,iocharset=utf8 0 0
In the future, there will be no Ubuntu garbled and question marks on CDs containing Chinese.
Press Alt+F2 to run the dialog box. Type gksu gedit and click run, and in the open text editor, open the file "/ etc/fonts/conf.d/49-sansserif.conf"
Replace the 18-line''sans-serif'''' with''sans serif''',. When you open some PDF files, the Chinese box will not appear.
However, I have only encountered TXT garbled code, Flash garbled code, player Chinese name garbled code, the other several did not encounter, also do not know whether can succeed, depends on the character.
Perhaps, many people will say that Ubuntu LInux is wrong and think that the system's support for Chinese is really too poor. As everyone knows, the problem of Ubuntu garbled is not Ubuntu's fault. For example, double-clicking the TXT saved under Windows under Ubuntu is garbled. But right-click, choose to open with OpenOffice, there will be a prompt, choose GB18030 or Unicode encoding, you can open very well, without any Ubuntu garbled. In fact, the occurrence of Ubuntu garbled is all about the way of coding. Ubuntu defaults to UTF-8. Even if a byte is lost in the transmission process of UTF-8 coding, it is easy to locate the lost position according to the coding law and will not affect other characters, so this kind of coding is very suitable for transmission coding. Officially, its stability and international standards led Ubuntu to choose it. Under Windows, TXT is saved as ANSI encoding by default, and different ANSI codes are incompatible with each other. When information is exchanged internationally, text belonging to two languages cannot be stored in the same ANSI-encoded text. We also often encounter prompts that cannot be saved when saving a large amount of text from a web page under Windows.
Of course, it takes 3 bytes to use UTF-8 Chinese characters, while ANSI only needs 2 bytes. From this point of view, Ubuntu is still not humanized enough for Chinese people.
This also reminds me of web standards. The international standard is W3C, while Microsoft abandons the international standard by virtue of the bundled promotion model of IE, which brings serious obstacles to the compatibility of the whole network. But even so, people prefer to develop web pages that are suitable for IE standards to solve the compatibility problem, rather than looking for the nature of the problem. Opera later complained to the European Commission that Microsoft's browser measures hindered competition. Microsoft was fined record-breaking for failing to comply with a previous EU ruling. At this point, Microsoft's IE8 has a compatibility mode to be compatible with W3C standards.
On how to solve the Ubuntu garbled incident to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 280
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.