-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ensure_ascii to the options for repair_json.
By default `json.dumps()` sets `ensure_ascii=True` this is particularly a problem for chinese text that has no ascii characters (historical reasons etc etc). Setting ensure_ascii=False will ensure that chinese text it's not converted into weird escaped characters in ascii but stays unicode. Also fixed a parameter issue with the `load` function.
- Loading branch information
1 parent
de4ada4
commit 578441f
Showing
3 changed files
with
22 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters