Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit e54fee2

Browse files
committed
fix
1 parent de0c01d commit e54fee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

databend_py/uploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _serialize_data(self, data, compress):
7272
buf = io.StringIO()
7373
csvwriter = csv.writer(buf, delimiter=',', quoting=csv.QUOTE_MINIMAL)
7474
csvwriter.writerows(data)
75-
output = buf.getvalue()
75+
output = buf.getvalue().encode('utf-8')
7676
if compress:
7777
buf = io.BytesIO()
7878
with gzip.GzipFile(fileobj=buf, mode="wb") as gzwriter:

0 commit comments

Comments
 (0)