1. convert File content encoding
Windows in natural plain text files. When China is encoded as a GBK, garbled under Ubuntu, you can use the Iconv command to convert:
Iconv-f gbk-t UTF8 source_file > Target_file
2. Convert File name code
Compressed ZIP files under Windows, when unpacked under Ubuntu, the Chinese file name will show garbled. can be solved with CONVMV.
Install CONVMV:
sudo apt-get install CONVMV
To convert a file or folder:
Convmv-f gbk-t utf8-r--notest *
3, unzip the zip file garbled
Under Ubuntu, use unzip to extract the native zip file from the widnows environment. File name or folder name garbled occurs. The workaround is to use 7-zip and CONVMV.
Install 7-zip and CONVMV:
sudo apt-get install CONVMV p7zip-full
Unzip the zip file:
Lang=c 7z e Zip_file
Convmv-f gbk-t utf8-r--notest *
4, unzip RAR file garbled
In Ubuntu under the Windows environment to extract the natural RAR files, the same will encounter Chinese garbled problems, such as the use of 7z to extract.
The workaround is to use Unrar to decompress.
Install Unrar:
sudo apt-get install Unrar
Unrar e file name
5, PDF Chinese garbled
PDF file in the Chinese display garbled in the case, can install Poppler-data to solve:
sudo apt-get install Poppler-data
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Troubleshoot problems with Ubuntu and windows that file garbled