specific encoding of strings.json
https://forums.ankiweb.net/t/win10-build-error-unicodedecodeerror-gbk-codec-cant-decode-byte-0x91/10714
This commit is contained in:
parent
d448bd9cb6
commit
968bd1b27a
@ -8,7 +8,7 @@ from typing import List, Literal, TypedDict
|
|||||||
import stringcase
|
import stringcase
|
||||||
|
|
||||||
strings_json, outfile = sys.argv[1:]
|
strings_json, outfile = sys.argv[1:]
|
||||||
modules = json.load(open(strings_json))
|
modules = json.load(open(strings_json, encoding="utf8"))
|
||||||
|
|
||||||
|
|
||||||
class Variable(TypedDict):
|
class Variable(TypedDict):
|
||||||
|
@ -8,7 +8,7 @@ from typing import List, Literal, TypedDict
|
|||||||
import stringcase
|
import stringcase
|
||||||
|
|
||||||
strings_json, outfile = sys.argv[1:]
|
strings_json, outfile = sys.argv[1:]
|
||||||
modules = json.load(open(strings_json))
|
modules = json.load(open(strings_json, encoding="utf8"))
|
||||||
|
|
||||||
|
|
||||||
class Variable(TypedDict):
|
class Variable(TypedDict):
|
||||||
|
Loading…
Reference in New Issue
Block a user