将xml解析编码设定为GB2312,以满足GB28181要求

pull/10/head
Lawrence 2020-06-12 10:50:45 +08:00
parent 08af41b1dd
commit 1f48ec21cd
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ public class MessageRequestProcessor implements ISIPRequestProcessor {
Request request = evt.getRequest();
SAXReader reader = new SAXReader();
reader.setEncoding("gbk");
Document xml;
try {
xml = reader.read(new ByteArrayInputStream(request.getRawContent()));