한글 인코딩 수정
This commit is contained in:
+3
-3
@@ -438,19 +438,19 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
|||||||
resultSet = sis.readLine(arg, total, 1024);
|
resultSet = sis.readLine(arg, total, 1024);
|
||||||
}
|
}
|
||||||
|
|
||||||
param.put("recvData", new String(arg, "UTF-8"));
|
param.put("recvData", new String(arg));
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
logger.error("MessageSync.err - don't read the XML File - " + new String(arg), e);
|
logger.error("MessageSync.err - don't read the XML File - " + new String(arg), e);
|
||||||
param.put("recvData", "");
|
param.put("recvData", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
// byte[]로부터 XML 파싱 (BOM 제거)
|
// byte[]로부터 XML 파싱 (BOM 제거)
|
||||||
String xmlContent = new String(arg, "UTF-8").trim();
|
String xmlContent = new String(arg).trim();
|
||||||
// BOM 제거 (UTF-8 BOM: EF BB BF)
|
// BOM 제거 (UTF-8 BOM: EF BB BF)
|
||||||
if (xmlContent.startsWith("\uFEFF")) {
|
if (xmlContent.startsWith("\uFEFF")) {
|
||||||
xmlContent = xmlContent.substring(1);
|
xmlContent = xmlContent.substring(1);
|
||||||
}
|
}
|
||||||
Document doc = builder.build(new ByteArrayInputStream(xmlContent.getBytes("UTF-8")));
|
Document doc = builder.build(new ByteArrayInputStream(xmlContent.getBytes()));
|
||||||
|
|
||||||
param.put("logPrcssSeqno", UUIDGenerator.getUUID());
|
param.put("logPrcssSeqno", UUIDGenerator.getUUID());
|
||||||
// xml 1.1
|
// xml 1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user