pyftpdlib內部使用utf8,而windows使用gbk,可以將pyftpdlib進行修改:
1、filesystems.py
AbstractedFS.format_list與AbstractedFS.format_list最後一行
yield line.encode('utf8', self.cmd_channel.unicode_errors)
utf8改爲gbk
2、handlers.py
FTPHandler.decode
return bytes.decode('utf8', self.unicode_errors)
utf8改爲gbk
https://github.com/giampaolo/pyftpdlib/issues/257