Article Title: solves the problem of some file garbled characters in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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 common linux commands. Txt> common linux commands. Txt. utf8
Then open "common linux commands. Txt. utf8 "file. The Garbled text above solves the problem.