The garbled problem of extracting Linux and UNIX platform tar packets under Windows

Source: Internet
Author: User
Tags character set file system linux

Windows and Linux/unix have different ways of handling file system character sets. The Windows file system driver layer itself has the character set conversion, processing module, no matter what character set from the operating system, the final to unified conversion to the different file system of the character processing module, such as the file stored on NTFS, now almost unified in $i30 Way index, is stored in Unicode mode. And Linux/unix is different, the file system drive layer itself is not responsible for the character set processing, the operating system passed down the file name as a byte stream directly recorded in the file system index structure, do not understand the character set, so, in the same Linux/unix file system, you can Allows a number of different character sets to exist in the directory structure.

If you make a tar package for some files under Linux/unix, the TAR packet directly records the name stream read from the file system, and if the TAR packet is unzipped under Windows, it is likely to be garbled or uncompressed. In fact, the solution is very simple, as long as the windows to adjust to different character sets, extract the corresponding file can be, but this corresponding need to be artificial to judge.

Open Windows Control Panel, select Regional and Language Options, and move to the Advanced tab, in the "Select a language to make it work with the language of the non-Unicode program you are using ...." ", select the appropriate character set on the. The files corresponding to the character set in the tar package are then extracted to the NTFS file system, which is automatically converted to the Unicode universal character set. Another character set, decompression, you can also convert other character sets to Unicode.

Many NAS devices, because the user's use of the character set may be different (typical, Hong Kong, Taiwan, the mainland of the Federated Enterprise use of NAS), so if the NAS data backup, want to unlock windows, network management is not familiar with Linux, this method may be easy to solve.

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.