wu-sheng opened a new issue, #9921: URL: https://github.com/apache/skywalking/issues/9921
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues. ### Apache SkyWalking Component OAP server (apache/skywalking) ### What happened ```java @Override protected LogData parseConsumerRecord(ConsumerRecord<String, Bytes> record) throws IOException { LogData.Builder logDataBuilder = LogData.newBuilder(); ProtoBufJsonUtils.fromJSON(new String(record.value().get(), StandardCharsets.UTF_8), logDataBuilder); return logDataBuilder.build(); } ``` This should be the correct way to decode byte[] from Kafka ### What you expected to happen Some one reported this through QQ discussion group in CN. The original reported agree to submit this fix after he/she tested, I opened this issue for tracking the progress. ### How to reproduce The current code only supported ascii chars. Chinese chars or others out of ascii would be decoded incorrectly. Such as `"body":{"text":{"text":"\"test\""}}` -> `"body":{"text":{"text":"\x5C"test\x5C""}}` ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
