This article introduces the pyftplib Chinese garbled solution, the text of the sample code through the introduction of the very detailed, for everyone's learning or work has a certain reference learning value, the need for friends can refer to the following
Using pyftpdlib to start the ftp server, ftp client in the upload file, if you do not specify the character encoding, if encountered in Chinese, may be garbled; online to find a lot of information, but their clients are based on python implementation. I still can't solve my problem.
So re: FTPHandler's decode method
def decode(self, bytes): return ('utf-8', self.unicode_errors)
Changing utf-8 to gbk fixes it perfectly!
This is the whole content of this article.