* use utf-8 encoding on readstatic
This commit is contained in:
parent
9fa05d6e1f
commit
56c901eb8b
@ -30,6 +30,6 @@ def read_static(file:str, ret_bin:bool=False)->Union[str, bytes]:
|
|||||||
mode = 'rb'
|
mode = 'rb'
|
||||||
else:
|
else:
|
||||||
mode = 'r'
|
mode = 'r'
|
||||||
with open(static_file, mode) as f:
|
with open(static_file, mode, encoding='utf-8') as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user