Encoding and conversion of file names and content

Source: Internet
Author: User

1. encoding and conversion of file names
When the Solaris system is initially installed, the Lang value is set to C, and then Lambo uses FTP to upload the Mr to the server and decompress it, the results showed that the image names of many bugs previously mentioned were garbled. therefore, the convmv method is found on the Internet. after testing, this method is effective.
Convmv-F gb2312-T utf8-r -- notest ./*
-R indicates recursive conversion, including subfolders
-- Notest indicates direct conversion, instead of performing a conversion test instead of a real conversion.
The following is an introduction to convmv on SunFreeware:
Convmv converts filenames (not file content), directories, and even whole filesystems to a different encoding-installin/usr/local. dependencies: Perl in/usr/local/bin or you can edit the convmv file in/usr/local/bin and change the first line to point to the Perl you want to use.
Note that after convmv is installed, if Perl in the system is installed independently instead of later, you need to modify # In the first line of the convmv file #! The shell interpreter following is the value of 'which Perl.

2. encoding and conversion of File Content
/Bin/iconv-F fromencode-T toencode File
You can use iconv-L to view the file encoding supported by iconv.

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.