读书人

webservice客户端接收为乱码,该怎么处

发布时间: 2012-01-13 22:43:29 作者: rapoo

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="">成功</response></UserInfoSyncToISMPResp></soapenv:Body></soapenv:Envelope>

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

[解决办法]
编码解码

读书人网 >J2EE开发

热点推荐