forked from Thirdparty/wvp
1
0
Fork 0

修正设备通道名称为中文无法列出的错误

master
Lawrence 2020-06-25 15:46:02 +08:00
parent c296e431db
commit d2285b6913
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ public class MessageRequestProcessor implements ISIPRequestProcessor {
private Element getRootElement(RequestEvent evt) throws DocumentException {
Request request = evt.getRequest();
SAXReader reader = new SAXReader();
reader.setEncoding("GB2312");
reader.setEncoding("gbk");
Document xml = reader.read(new ByteArrayInputStream(request.getRawContent()));
return xml.getRootElement();
}