首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

Indy 10.5.5 版 get 乱码解决思路

2012-03-05 
Indy 10.5.5 版 get 乱码Delphi2010 + Indy 10.5.5vara: stringa : idhttp1.get(http://www.2ccc.com/2

Indy 10.5.5 版 get 乱码
Delphi2010 + Indy 10.5.5

var
  a: string;

a := idhttp1.get('http://www.2ccc.com/2ccc.txt');

用D2007 + Indy 10.1.5是正常的
但是升级后变量 a 就是乱码了

[解决办法]
将编码转换一下,d2010默认好像是UTF8格式的
[解决办法]
utf8toansi试试

热点排行