日期:2014-05-20  浏览次数:20684 次

webservice客户端接收为乱码
XML code

<?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><UserInfoSyncToISMPResp xmlns="http://www.mbossvsop.com.cn/vsop"><response xmlns="">&#x6210;&#x529F;</response></UserInfoSyncToISMPResp></soapenv:Body></soapenv:Envelope>


PS:是在linux环境中,java文件是使用gbk编码,客户端要求返回utf-8编码的信息。

------解决方案--------------------
编码解码