Try a newer version of Indy, Indy still supports non-Unicode Delphi.
The Indy TIdHTTP Get should automatially convert UTF-8 to Ansi (with limitations):
Internally, TIdHTTP.Get() decodes the server's UTF-8 data to Unicode, and then converts that to Ansi when returning it as an AnsiString in pre-2009 versions. That AnsiString uses the OS's default Ansi codepage, so yes, there is potential for data loss if the OS's current language does not support the Unicode characters being used by the server. ?f=7&t=3011
尝试一个新版本的印,印还支持非Unicode Delphi。
Indy tidhttp应该自动转换UTF-8 ANSI(有限制):
在内部,tidhttp。get()解码服务器的Unicode UTF-8数据,然后转换为ANSI 回国时,它作为一个AnsiString pre-2009中。,使用操作系统的默认ANSI AnsiString 代码页,所以是的,有数据的潜在损失如果OS的电流语言不支持Unicode字符被服务器使用。