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.