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

This commit is contained in:
Lawrence 2020-06-12 10:50:45 +08:00
parent 22ead512c1
commit 5392604e80

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()));