byte[] msg = StreamUtils.readStream(new FileInputStream("文件路径"));
new String(msg) 出来的字符显示正常
smooks.filterSource(new StreamSource(new ByteArrayInputStream(messageIn)), result);
smooks得出的结果就乱码
求解决
byte[] msg = StreamUtils.readStream(new FileInputStream("文件路径"));
new String(msg) 出来的字符显示正常
smooks.filterSource(new StreamSource(new ByteArrayInputStream(messageIn)), result);
smooks得出的结果就乱码
求解决