[教程]修复 TNetHttpClient Windows 下Header 中包含UTF8编码字符时乱码的问题

S

swish

Unregistered / Unconfirmed
GUEST, unregistred user!
[修复思路] 将编码转换回 ACP,然后再用 UTF-8 编码转换回来。 [修复代码] 如果引用 QString 单元,则直接 QString.Utf8Decode(PQCharA(QString.AnsiDecode(Value)),-1) 转换下就可以。 [问题原因] 该问题是由于 Windows 的 WinHtt

查看更多...
 

Similar threads

S
回复
0
查看
930
SUNSTONE的Delphi笔记
S
S
回复
0
查看
754
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部