The output of slow.log is parsed by pt-query-digest tool into json format, and the Chinese code in sql statement is garbled

The output of slow.log is json format when parsed by pt-query-digest tool, the Chinese code in sql statement appears garbled, mysql character encoding is utf8, is it an official bug?

pt-query-digest --charset=utf8 slow.log --output json > analysis_results1.json

image



image

@jackpercona Make sure your SSH terminal can handle utf8 characters. It may be the case where the text file is utf8, but when you look at it, it appears garbled because your SSH terminal can’t/doesn’t support utf8.