关于webservice访问返回字符集问题
我用ole和winhttp的方式测试webservice访问,可是获取到的内容有字符集问题,返回结果如下:
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getAllHospitalsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://ws.msc.yaoyi.com"><getAllHospitalsReturn xsi:type="xsd:string">870402|吴门桥社区卫服务中心@880502|平江路社区卫生服务站@890501|虎丘社区卫生服务中心@880603|娄江社区卫生服务中心@870102|杨枝社区卫生服务站@870204|双桥社
Transfer is Chunked!
GetChunkLength: b4a = 2890
33A;卫生服务中心@890601|清塘社区卫生服务中心@890503|留园社区卫生服务中心@890101|白洋湾社区卫服务中心@890701|苏站社区卫生服务中心@880702|光华社区卫生服务站@890201|金阊街道社区卫生服务中心@890204|彩香二村社区卫生站@890102|白洋湾社区卫生服务站@870504|双塔社区卫生服务中心@870405|润达社区卫生服务中心@890303|石路社区卫生服务中心@890202|三元一村卫生站@870205|友新社区卫生服务中心@870206|友联社区卫生服务站@880403|白塔社区卫生服务中心@870501|钟楼社区卫生服务站@870601|竹辉社区卫生服务站@870701|葑门社区卫生服务中心@880103|阊门社区卫生服务中心@870302|胥江社区卫生服务站@870301|胥江社区卫生服务中心@890302|朱家庄社区卫生服务站</getAllHospitalsReturn></ns1:getAllHospitalsResponse></soapenv:Body></soapenv:Envelope>Connection Disconnected
我在pb8、pb11.5下测试都有这个问题,但是在网页上按照utf8转换是可以出中文的,我在11.5下用string(blob,encodingutf8)来转换,结果是这样,和ansi转换完全一样,请问哪位高手有相关经验给指点一下。谢谢!