-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Open metadata with utf-8 encoding
When calling 'open' without specifying the encoding Python will use `locale.getencoding()` for Python 3.11+ and `locale.getpreferredencoding(False)` (with or without the `False`) for Python 3.8 to determine which encoding to open the file with. RMS in interactive mode sets this to ANSI_X3.4-1968 (a weird way of saying ascii). This can cause opening the file to fail when non-ascii characters are present within it.
- Loading branch information
Showing
2 changed files
with
40 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