improve: utf-8 support for wildcards file

This commit is contained in:
Dr.Lt.Data
2023-07-25 12:52:43 +09:00
parent deb089197a
commit 2f72ad17fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import configparser
import os
version = "V3.0.3"
version = "V3.0.4"
dependency_version = 4
+1 -1
View File
@@ -15,7 +15,7 @@ def read_wildcard_dict(wildcard_path):
file_path = os.path.join(root, file)
key = os.path.splitext(file)[0]
with open(file_path, 'r') as f:
with open(file_path, 'r', encoding="UTF-8") as f:
lines = f.read().splitlines()
wildcard_dict[key] = lines