wenlq 发表于 2014-09-01 17:21

请教一下,webservice返回的http这个头有没有问题?




HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Language: zh-CN
Transfer-Encoding: chunked
Date: Mon, 01 Sep 2014 09:06:20 GMT
Server: WebSphere Application Server/7.0



0000   48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0dHTTP/1.1 200 OK.
0010   0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74.Content-Type: t
0020   65 78 74 2f 78 6d 6c 3b 20 63 68 61 72 73 65 74ext/xml; charset
0030   3d 55 54 46 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d=UTF-8..Content-
0040   4c 61 6e 67 75 61 67 65 3a 20 7a 68 2d 43 4e 0dLanguage: zh-CN.
0050   0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69.Transfer-Encodi
0060   6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a 44 61 74ng: chunked..Dat
0070   65 3a 20 4d 6f 6e 2c 20 30 31 20 53 65 70 20 32e: Mon, 01 Sep 2
0080   30 31 34 20 30 39 3a 30 36 3a 32 30 20 47 4d 54014 09:06:20 GMT
0090   0d 0a 53 65 72 76 65 72 3a 20 57 65 62 53 70 68..Server: WebSph
00a0   65 72 65 20 41 70 70 6c 69 63 61 74 69 6f 6e 20ere Application
00b0   53 65 72 76 65 72 2f 37 2e 30 0d 0a 0d 0a      Server/7.0....

wenlq 发表于 2014-09-01 17:25

gsoap返回的串里utf-8编码的字符会丢掉一些,搞得不能转换到正确的汉字。
页: [1]
查看完整版本: 请教一下,webservice返回的http这个头有没有问题?