When python sees an invalid character in a filename for the current locale, instead of clobbering it, it saves is as an invalid codepoint called a surrogate. We need to explicitly instruct the encoder to write those out as-is. In the JSON file, we replace them instead to produce valid json.pull/4719/head
parent
3232f780d8
commit
7993747e13
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue