delphi xe 手机idftp上传时出现No mapping for the Unicode character exists in the target multi-byte code page

 

原来是

//              IdFTP1.IOHandler.DefStringEncoding := IndyTextEncoding(TEncoding.ANSI);

需要改为
              IdFTP1.IOHandler.DefStringEncoding := IndyTextEncoding(TEncoding.UTF8);

相关文章: