最近在搞fmx开发,用idhttp post 数据 返回中文乱码,在网上找了好多都解决不了,后来自己琢磨出方法,非常简单
uses IdGlobal
lstr := idhttp1.Post('http://wwwbaidu.com',ls,IndyTextEncoding(TEncoding.ANSI));
编码方式自定义
最近在搞fmx开发,用idhttp post 数据 返回中文乱码,在网上找了好多都解决不了,后来自己琢磨出方法,非常简单
uses IdGlobal
lstr := idhttp1.Post('http://wwwbaidu.com',ls,IndyTextEncoding(TEncoding.ANSI));
编码方式自定义
打赏作者