[ https://issues.apache.org/jira/browse/AXIS2-5964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897309#comment-17897309 ]
Robert Lazarski commented on AXIS2-5964: ---------------------------------------- Thank you for mentioning this. This is how the code looks now. You said "both on .getBytes and writeTo methods " however since the referenced code is in the writeTo method, it wasn't clear to me and I see nothing else in this code that is missing the encoding. I am marking the issue as fixed, though it can be reopened if something is missing. String encoding = format.getCharSetEncoding(); if (encoding != null) { out.write(jsonToWrite.getBytes(encoding)); } 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