Turn -Linux access Windows FTP server Chinese garbled

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https: //blog.csdn.net/qq_25978793/article/details/51172655
may have problems when the Chinese garbled Linux under windows ftp server access, which is due to different Chinese coding problem. Windows Chinese encoding used is gbk, while most linxu version default encoding is utf8.

One solution is to use a terminal registered in lftp, manually set the Chinese encoding, in a terminal

the FTP lftp: // <username>: <password> @ <address>
1
Once logged in, enter

the FTP the SET: GBK charset
the SET File: charset utf8
1
2
then you can show the normal Chinese file name, but may also be a problem. When try ls or cd after setting up

Error Fatal: Certificate Verification: Not Trusted
1
Then they need to enter:

ssl the SET: the Verify Certificate-NO
1
after if you do not have to enter it every time you log three set balabala, only need to create ~ / .lftp / rc, you can add these three in the rc file.

Source:
http://linux.it.net.cn/m/view.php?aid=1708
http://anils-tips.blogspot.com/2011/05/lftp-fatal-error-certificate.html
- --------------
Disclaimer: this article is CSDN blogger original article "desert air", the follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_25978793/article/details/51172655

Guess you like

Origin www.cnblogs.com/lizhaoxian/p/11783708.html