My new operating system is called Ubuntu, an issue version of GNU/Linux. These days, Pip helped me finish some basic configurations. He is really a warm-hearted guy and always ready to help others, especially those who are also crazy about Linux. I appreciated his help a lot.
Last night, I found the content of the .txt files couldn't be displayed in the right way, and .chm files even couldn't be opened. I searched the user guide on the Ubuntu official website for the information, but ended in finding nothing useful. I turned to Pip for help. The problem of opening the .chm files is resolved by installing a software called xChm. But the other is not that easy. He spent half an hour, more or less, searching for the related information, querying in the chatting room. Finally he fixed it up by using vi, a text editor in command line, which is called terminal in Linux. The content could be displayed correctly.
Just now, a idea struct me. In Windows, maybe one never uses Microsoft Word to open a .txt file. Neither do I. But why not give it a try, in Linux environment? So I opened the file using OpenOffice.Org 2.0, the word processor in Linux. Just as I expected, there are a lot of choices of character sets for you to choose. After several trials, I found the correct char-set. "Chinese traditional(GBT-12345)" can change the Unicode to Traditional Chinese Character, and "Chinese simplified(GB-18030)" can display the content in Simplified Chinese Character. In condition that the Ubuntu kernel doesn't support the needed char-set, so we need such a little trick to get what we want.
Last night, I found the content of the .txt files couldn't be displayed in the right way, and .chm files even couldn't be opened. I searched the user guide on the Ubuntu official website for the information, but ended in finding nothing useful. I turned to Pip for help. The problem of opening the .chm files is resolved by installing a software called xChm. But the other is not that easy. He spent half an hour, more or less, searching for the related information, querying in the chatting room. Finally he fixed it up by using vi, a text editor in command line, which is called terminal in Linux. The content could be displayed correctly.
Just now, a idea struct me. In Windows, maybe one never uses Microsoft Word to open a .txt file. Neither do I. But why not give it a try, in Linux environment? So I opened the file using OpenOffice.Org 2.0, the word processor in Linux. Just as I expected, there are a lot of choices of character sets for you to choose. After several trials, I found the correct char-set. "Chinese traditional(GBT-12345)" can change the Unicode to Traditional Chinese Character, and "Chinese simplified(GB-18030)" can display the content in Simplified Chinese Character. In condition that the Ubuntu kernel doesn't support the needed char-set, so we need such a little trick to get what we want.
作者在使用Ubuntu操作系统过程中遇到文本文件显示乱码的问题,在好友的帮助下,通过安装xChm软件解决了.chm文件无法打开的问题,并利用vi编辑器及尝试不同的字符集最终解决了.txt文件的乱码问题。

177

被折叠的 条评论
为什么被折叠?



