Skip to content

Commit e45879a

Browse files
committed
fix unknown encoding
1 parent 3b6a433 commit e45879a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql_ch_replicator/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def convert_record(
317317
'text' in mysql_field_type or 'char' in mysql_field_type
318318
):
319319
if isinstance(clickhouse_field_value, bytes):
320-
charset = mysql_structure.charset_python
320+
charset = mysql_structure.charset_python or 'utf-8'
321321
clickhouse_field_value = clickhouse_field_value.decode(charset)
322322

323323
if 'point' in mysql_field_type:

0 commit comments

Comments
 (0)