Skip to content

Commit b723b93

Browse files
committed
iconv
1 parent 5d07f11 commit b723b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def cleanup(*args):
4949

5050
DUMP_CMD = 'mysqldump -h {host} -P {port} -u {user} --password={password} {db} {table} ' \
5151
'--default-character-set=utf8 -X'.format(**config['mysql'])
52-
REMOVE_INVALID_CHAR_CMD = 'tr -cd "[:print:]"'
52+
REMOVE_INVALID_CHAR_CMD = 'iconv -f utf-8 -t utf-8 -c'
5353

5454
BINLOG_CFG = {key: config['mysql'][key] for key in ['host', 'port', 'user', 'password', 'db']}
5555
BULK_SIZE = config.get('elastic').get('bulk_size')

0 commit comments

Comments
 (0)