Delphi10.2使用IdFTP上传中文文件名失败问题
失败报错内容如下:
Exception class EIdReplyRFCError with message
'No mapping for the Unicode character exists in the target multi-byte code page.'
网上说法,直接加在Connect;成功后加这一句就可以了。
IdFTP1.IOHandler.DefStringEncoding := IndyTextEncoding(TEncoding.UTF8);
实际上可能还是不行,因
原创
2021-07-15 11:54:18 ·
1023 阅读 ·
0 评论