6U-U9 commented on a change in pull request #4024:
URL: https://github.com/apache/rocketmq/pull/4024#discussion_r838442453



##########
File path: 
example/src/main/java/org/apache/rocketmq/example/openmessaging/SimpleProducer.java
##########
@@ -40,15 +39,15 @@ public static void main(String[] args) {
         System.out.printf("Producer startup OK%n");
 
         {
-            Message message = producer.createBytesMessage("OMS_HELLO_TOPIC", 
"OMS_HELLO_BODY".getBytes(Charset.forName("UTF-8")));

Review comment:
       I don't think it's necessary to specify the encode charset for message 
body.
   As long as one encode and decode the message with the same charset, he shall 
get the correct message.




-- 
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]


Reply via email to