-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Support UTF-8 encoding for JSON files (#1357)
* WIP: add ensure_ascii flage to _write_json * Revert "WIP: add ensure_ascii flage to _write_json" This reverts commit 4c47679. * Dont Force ASCII encoding in _write_json * TST: Add a test TIL: That json.loads will always convert unicode. So to test that unicode was properly encoded while writing to disk, I had to had to just read the text on disk without the json module * DOC: update changelog * Commit Dan's suggestion Instead of closing and re-opening the file, rewind the "playhead" to the start of the open file, then use fid.read() as usual Co-authored-by: Daniel McCloy <dan@mccloy.info> --------- Co-authored-by: Daniel McCloy <dan@mccloy.info> Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
- Loading branch information
1 parent
3492fa0
commit 3f59b0e
Showing
3 changed files
with
12 additions
and
3 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