& Nbsp; original files compressed by Windowsrar. in Linux, decompress the files and open the files. the contents are all garbled. Garbled characters occur because some files in the compressed files are named in Chinese. In windows, the Chinese encoding is generally gbk, while in linux, the Chinese encoding is generally utf8.
For files compressed by Windows rar, unzip the files in Linux and open the files. the contents are garbled.
Garbled characters occur because some files in the compressed files are named in Chinese. In windows, the Chinese encoding is generally gbk, while in linux, the Chinese encoding is generally utf8, so the files normally opened in windows may be garbled in linux.
Solution: Use the iconv command to convert the file content encoding. For example, I have a file named "common linux commands" which can be opened normally in windows, but garbled characters may occur when opened in linux. the solution is to enter the file on the terminal:
Iconv-f gbk-t utf8 commands are commonly used in Linux. txt> commonly used in Linux. txt. utf8
Then open the file "linuxlinuxcommon command .txt. utf8", and solve the garbled problem.