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

morningman pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/incubator-doris-spark-connector.git

commit dffb307605dc96b145dc2044673477c61b9cae77
Author: jiafeng.zhang <zhang...@gmail.com>
AuthorDate: Sun Feb 13 16:50:29 2022 +0800

    [Bug-Fix][Spark-Doris-Connector]  resolve the problem of writing Chinese 
garbled characters (#6)
    
    resolve the problem of writing Chinese garbled characters
---
 .../src/main/java/org/apache/doris/spark/DorisStreamLoad.java           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/spark-doris-connector/src/main/java/org/apache/doris/spark/DorisStreamLoad.java
 
b/spark-doris-connector/src/main/java/org/apache/doris/spark/DorisStreamLoad.java
index ec3892d..b74e0a8 100644
--- 
a/spark-doris-connector/src/main/java/org/apache/doris/spark/DorisStreamLoad.java
+++ 
b/spark-doris-connector/src/main/java/org/apache/doris/spark/DorisStreamLoad.java
@@ -193,7 +193,7 @@ public class DorisStreamLoad implements Serializable{
             beConn = getConnection(loadUrlStr, label);
             // send data to be
             BufferedOutputStream bos = new 
BufferedOutputStream(beConn.getOutputStream());
-            bos.write(value.getBytes());
+            bos.write(value.getBytes("UTF-8"));
             bos.close();
 
             // get respond

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to