Skip to content
Permalink
Browse files
[Bug-Fix][Spark-Doris-Connector] resolve the problem of writing Chine…
…se garbled characters (#6)

resolve the problem of writing Chinese garbled characters
  • Loading branch information
hf200012 authored and morningman-cmy committed Feb 16, 2022
1 parent c5bf0b2 commit dffb307605dc96b145dc2044673477c61b9cae77
Showing 1 changed file with 1 addition and 1 deletion.
@@ -193,7 +193,7 @@ private LoadResponse loadBatch(String value) {
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

0 comments on commit dffb307

Please sign in to comment.