Delphi用idhttp向用gbk编码的网站Post过去的数据在网站的网页显示成乱码怎么解决?
HTTP.Request.CharSet:='gbk';HTTP.Request.UserAgent:='Mozilla/5.0(compatible;MSIE9.0;q...
HTTP.Request.CharSet := 'gbk';
HTTP.Request.UserAgent := 'Mozilla/5.0 (compatible; MSIE 9.0; qdesk 2.3.1186.202; Windows NT 6.1; Trident/5.0; BOIE9;ZHCN)';
HTTP.Request.ContentType:='application/x-www-form-urlencoded';
HTTP.Request.Accept := 'text/html, application/xhtml+xml, */*';
HTTP.Request.AcceptEncoding :='gzip, deflate';
HTTP.Request.Host := 'bbs.hefei.cc';
HTTP.Request.CacheControl := 'no-cache';
HTTP.Request.Connection := 'Keep-Alive'; 展开
HTTP.Request.UserAgent := 'Mozilla/5.0 (compatible; MSIE 9.0; qdesk 2.3.1186.202; Windows NT 6.1; Trident/5.0; BOIE9;ZHCN)';
HTTP.Request.ContentType:='application/x-www-form-urlencoded';
HTTP.Request.Accept := 'text/html, application/xhtml+xml, */*';
HTTP.Request.AcceptEncoding :='gzip, deflate';
HTTP.Request.Host := 'bbs.hefei.cc';
HTTP.Request.CacheControl := 'no-cache';
HTTP.Request.Connection := 'Keep-Alive'; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询