Skip to content

Commit

Permalink
Merge pull request #2358 from jonyangx/issue2346
Browse files Browse the repository at this point in the history
[ISSUE #2346] Method encodes String bytes without specifying the character encoding
  • Loading branch information
xwm1992 authored Dec 2, 2022
2 parents fde740f + 63d9294 commit 6dbd733
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.eventmesh.connector.rabbitmq.cloudevent;

import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.time.OffsetDateTime;

import org.junit.Assert;
Expand All @@ -40,7 +41,7 @@ public void before() {
.withSubject("topic")
.withType(String.class.getCanonicalName())
.withDataContentType("text/plain")
.withData("data".getBytes())
.withData("data".getBytes(StandardCharsets.UTF_8))
.build();
}

Expand Down

0 comments on commit 6dbd733

Please sign in to comment.