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.