Solution to garbled Ubuntu music files and PDF files

Source: Internet
Author: User
Article Title: How to fix Garbled text in Ubuntu music files and PDF files. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Because of the different codes, the files that can be normally displayed in windows become garbled characters in Linux. The most common among them is the garbled characters in the tags of music files and the garbage codes in the pde files. The solution is as follows:

For music files, we only need to convert the file tag encoding. A good tool in linux is written in Python. Ubuntu is also available. You only need to run this command to install it.

Sudo apt-get install python-mutagen

Use the following method: mid3iconv-e gbk *. mp3

To convert all mp3 files (including subdirectories) in the current directory: find.-iname "*. mp3"-execdir mid3iconv-e gbk {}\;

There are two solutions to the pdf garbled:

1. Download Adobe Reader from the Adobe official website. This solution has the best effect, but the number of files to be downloaded is over 50 MB, which is a little big.

2. Download poppler-data here and decompress it.

Run: cd/extract path/poppler-data-0.1 on the terminal

Enter sudo make install datadir =/usr/share

OK. After opening the PDF file again, the Chinese text will be displayed normally.

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.