From 1f48ec21cd29a4745e191f5ddadaf7a701f7d223 Mon Sep 17 00:00:00 2001 From: Lawrence <1934378145@qq.com> Date: Fri, 12 Jun 2020 10:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86xml=E8=A7=A3=E6=9E=90=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E8=AE=BE=E5=AE=9A=E4=B8=BAGB2312=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E6=BB=A1=E8=B6=B3GB28181=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gb28181/transmit/request/impl/MessageRequestProcessor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java index fd5ca37..cc2e552 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java @@ -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()));