Garbled Lenovo Mobile ebook

Source: Internet
Author: User
Tags lenovo

Because a Lenovo p992 mobile phone needs to be purchased for dual-card dual systems, it is also based on the MTK solution. However, the e-book software is poor and cannot automatically remember the last reading position. The most unacceptable thing is that sometimes Garbled text occurs.

I didn't use it to read books. But I recently went on a business trip and didn't bring any other readers, so I had to use it. After research, we found that if the text file uses Unicode (little endian) encoding, there will be no garbled characters. If you use GBK encoding, garbled characters may occur.

The cause is easy to guess. The software pagination text by fixed size. Because GBK encoding has Single and Double Bytes, a Chinese character is sometimes separated by pages. The next page is garbled. Sometimes unfortunately, several consecutive pages may be garbled. Unicode encoding (within BMP) each character is two bytes, as long as the size of each page is an even number of bytes, one character will not be cut.

Sometimes novels written on the Internet are a few MB files without chapter. In this kind of reader with a small memory, we need to reduce the size of the file. Note that Unicode text files cannot be directly cut. Because this phone requires that Unicode text files must have BOM (that is, special bytes of the text format ). If you directly cut the file, only the first file has a Bom, and the subsequent file does not exist.

My practice is to use textforever to cut GBK-encoded files. After splitting, use the cnbook batch processing function to convert all files to unicode encoding.

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.