Reading is not tiring: The book grabbing tool in Linux

Source: Internet
Author: User
Reading is not tiring: Linux's book grabbing tool-Linux general technology-Linux technology and application information. The following is a detailed description. The home page is here. Home Page 2 is also described here.

In addition, after downloading a book, you must convert the code. Otherwise, you will not be able to see anything.

Use another command

The iconv command in Linux can be used to convert character encoding. The basic command format is as follows:

Iconv-f original encoding-t destination encoding File Name> New File Name
-F indicates from, and-t indicates

If I want to convert text.txt from GB2312 encoding to a UTF-8 and save it as a text-utf-8.txt, the command is as follows:

Iconv-f GB2312-t UTF-8 text.txt> text-utf-8.txt

However, sometimes an error is reported during conversion, probably because some characters in the original file exceed the range of GB2312. At this time, we can change GB2312 to its superset GB18030, generally, the problem is solved:

Iconv-f gb18030-t UTF-8 text.txt> text-utf-8.txt
Related Article

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.