You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2022/10/27 10:05:20 UTC

[incubator-eventmesh] branch master updated: Update PravegaEvent.java

This is an automated email from the ASF dual-hosted git repository.

mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new 9a4666c2 Update PravegaEvent.java
     new 8797fe1d Merge pull request #1964 from chenyuze/master
9a4666c2 is described below

commit 9a4666c251e5a462f190bfd8a523a0bd8cd4f08f
Author: chenyuze <74...@qq.com>
AuthorDate: Thu Oct 27 14:48:08 2022 +0800

    Update PravegaEvent.java
    
    Reliance on default encoding
---
 .../org/apache/eventmesh/connector/pravega/client/PravegaEvent.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-connector-plugin/eventmesh-connector-pravega/src/main/java/org/apache/eventmesh/connector/pravega/client/PravegaEvent.java b/eventmesh-connector-plugin/eventmesh-connector-pravega/src/main/java/org/apache/eventmesh/connector/pravega/client/PravegaEvent.java
index 4ce37cc6..7da900ab 100644
--- a/eventmesh-connector-plugin/eventmesh-connector-pravega/src/main/java/org/apache/eventmesh/connector/pravega/client/PravegaEvent.java
+++ b/eventmesh-connector-plugin/eventmesh-connector-pravega/src/main/java/org/apache/eventmesh/connector/pravega/client/PravegaEvent.java
@@ -64,7 +64,7 @@ public class PravegaEvent implements Serializable {
             default:
                 throw new PravegaConnectorException(String.format("CloudEvent version %s does not support.", version));
         }
-        builder.withData(data.getBytes())
+        builder.withData(data.getBytes(StandardCharsets.UTF_8))
             .withId(extensions.remove("id"))
             .withSource(URI.create(extensions.remove("source")))
             .withType(extensions.remove("type"))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org