Troubleshoot problems with Ubuntu and windows that file garbled

Source: Internet
Author: User
Tags unzip rar file unzip rar

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

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.