A little trick about Ubuntu configuration

作者在使用Ubuntu操作系统过程中遇到文本文件显示乱码的问题,在好友的帮助下,通过安装xChm软件解决了.chm文件无法打开的问题,并利用vi编辑器及尝试不同的字符集最终解决了.txt文件的乱码问题。
 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.
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值