[ https://issues.apache.org/jira/browse/AXIS2-5964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897315#comment-17897315 ]
Robert Lazarski commented on AXIS2-5964: ---------------------------------------- Actually, I'm not 100% sure "format" is not null always, so the code turned out this way: if (format != null && format.getCharSetEncoding() != null) { out.write(jsonToWrite.getBytes(format.getCharSetEncoding())); } else { out.write(jsonToWrite.getBytes()); } > AbstractJSONMessageFormatter NOT using CharSetEncoding when reding Json > string Bytes > ------------------------------------------------------------------------------------ > > Key: AXIS2-5964 > URL: https://issues.apache.org/jira/browse/AXIS2-5964 > Project: Axis2 > Issue Type: Bug > Components: json > Affects Versions: 1.7.8, 1.7.9 > Reporter: Marti Pamies Sola > Assignee: Robert Lazarski > Priority: Minor > Fix For: 2.0.0 > > > AbstractJSONMessageFormatter is not using input OMOutputFormat when getting > bytes from the Json string to be written. This happens both on .getBytes and > writeTo methods. > {code:java} > // if (jsonToWrite != null) { > out.write(jsonToWrite.getBytes()); > } else { > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org For additional commands, e-mail: java-dev-h...@axis.apache.org