X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=scripts%2Fmysql2sql;fp=scripts%2Fmysql2sql;h=cacbafa13444ea26898b5dcca80b065784fad485;hp=e63c1fd8f5942f0735256d5aae12e51e3ebd318a;hb=2c9d316a8af92358221bada1361176e1bb227401;hpb=2c347af7a3bdfb0e23ba96b28150d4e83485cf74 diff --git a/scripts/mysql2sql b/scripts/mysql2sql index e63c1fd..cacbafa 100755 --- a/scripts/mysql2sql +++ b/scripts/mysql2sql @@ -60,8 +60,8 @@ def main(infile, encoding, outfile, output_encoding, use_pbar, quoting_style): got_directive = is_directive_statement(statement) if got_directive: continue - for statement in process_statement(statement, quoting_style): - print_tokens(statement, outfile=outfile, + for _statement in process_statement(statement, quoting_style): + print_tokens(_statement, outfile=outfile, encoding=output_encoding) tokens = grouper.close() if tokens: