mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue