Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

logzero.json write utf-8 by default#357

Merged
metachris merged 1 commit intomasterfrom
json-utf8-default
Nov 15, 2020
Merged

logzero.json write utf-8 by default#357
metachris merged 1 commit intomasterfrom
json-utf8-default

Conversation

@metachris
Copy link
Owner

@metachris metachris commented Nov 12, 2020

See #355

JsonFormatter uses json.dumps, which enforces ascii-only encoding by default (ensure_ascii=True).

This PR allows the user to choose, with default ensure_ascii=False, which means unicode characters will be displayed and saved to the logfile.

@metachris metachris force-pushed the json-utf8-default branch 3 times, most recently from 5519a37 to 7c5b75d Compare November 12, 2020 18:40
@metachris metachris mentioned this pull request Nov 12, 2020
@metachris metachris merged commit a981fb5 into master Nov 15, 2020
@metachris metachris deleted the json-utf8-default branch November 15, 2020 10:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant