Skip to content

change json dumps parameter to show chinese log content correctly#103

Open
Ray-SR wants to merge 1 commit intovklochan:masterfrom
Ray-SR:master
Open

change json dumps parameter to show chinese log content correctly#103
Ray-SR wants to merge 1 commit intovklochan:masterfrom
Ray-SR:master

Conversation

@Ray-SR
Copy link

@Ray-SR Ray-SR commented Jun 21, 2022

When using json.dumps(message), if the message contains chinese, it will be displayed as unicode like "\u4f60\u597d", so it's better to add ensure_ascii=False to display chinese log content correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants