OpenOffice Plain Text Conversion PDF garbled problem Solution __ garbled problem

Source: Internet
Author: User
The. txt file has a garbled behavior, you can manually change the file extension to ODT, and then turn to PDF OK.

In the case of Linux server, encoding conversion is required due to different encodings (typically Windows is Gb2312,linux utf-8)

Iconv-f gb2312-t utf-8 test.txt-c-s-o Test.odt (interpretation is to convert gb2312 file to text.txt file output,-C Ignore invalid encoding,-s shutdown warning)

If the TXT file is not gb2312 encoded, you can view the file encoding with eNCA (download address: http://dl.cihar.com/enca/enca-1.13.tar.gz) command: Enca-i text.txt will be found in the code format to replace the gb2312 and then execute the above command, you can solve garbled.

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.