评论:原来的Windows RAR压缩文件,解压打开Linux系统的文件里面,所有的代码内容。

It is because of the compressed files that some files are named in Chinese.In windows, the Chinese code is generally GBK, while the Chinese code under the Linux is generally utf8, so the normal open files under the windows are very good to Linux.




Windows的原始RAR压缩文件,解压打开Linux系统的文件里面,所有的编码内容。

这是因为压缩文件,一些文件的中文名称。在Windows中,汉字编码一般是GBK汉字编码,而Linux下通常是UTF8,所以很可能会有乱码在Windows下打开文件正常。
解决的办法是使用命令iconv转换文件内容编码。例如,我有一个文件Linux常用命令打开Windows下和Linux下的开放代码,和解决方法是在终端中输入终端:
iconv -f GBK -t UTF8 Linux常用命令。txt > Linux常见的command.txt.utf8
之后,打开文件Linux常用命令。TXT UTF8 。