如何获取IdHTTP1.Response.RawHeaders内的中文
使用delphi7获取idhttp1.Response.RawHeaders时,UTF8Decode(idhttp1.Response.RawHeaders.Values['Content-disposition']);
取到的是中文内容“attachment; filename=测试_汇总表.xlsx”,使用XE10,同样的代码UTF8Decode(idhttp1.Response.RawHeaders.Values['Content-disposition']);取到的是乱码“attachment; filename=??????_?????????.xlsx”,用了Utf8ToAnsi、HTTPDecode、TidURI.URLDecode都不行