soapui加载天气预报接口报错Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte的解决办法

soapui加载天气预报接口时报错如下:

Error loading [http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl]: org.apache.xmlbeans.XmlException: java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 byte

截图如下:

解决办法:

在soapui的安装目录下找到SoapUI-4.6.4.vmoptions,在文件末尾添加-Dfile.encoding=UTF8,重启soapui即可。

原文地址:https://www.cnblogs.com/Noul/p/10675240.html