mmiklavc commented on a change in pull request #1341: METRON-614: Eliminate use
of the default Charset
URL: https://github.com/apache/metron/pull/1341#discussion_r313058715
##########
File path:
metron-platform/metron-parsing/metron-parsers-common/src/main/java/org/apache/metron/parsers/json/JSONMapParser.java
##########
@@ -202,7 +204,7 @@ public void init() {
}
return Collections.unmodifiableList(parsedMessages);
} catch (Throwable e) {
- String message = "Unable to parse " + new String(rawMessage) + ": " +
e.getMessage();
+ String message = "Unable to parse " + new String(rawMessage,
StandardCharsets.UTF_8) + ": " + e.getMessage();
Review comment:
Update - sorry, I made this comment on the wrong comment from you. I meant
this regarding the parserrunnerimpl class.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services