diff --git a/plugins/bulkImportPerformers/bulkImportPerformers.py b/plugins/bulkImportPerformers/bulkImportPerformers.py index 29bc573..39e0125 100644 --- a/plugins/bulkImportPerformers/bulkImportPerformers.py +++ b/plugins/bulkImportPerformers/bulkImportPerformers.py @@ -26,7 +26,8 @@ def graphql_request(query, variables=None): def read_performer_names(file_path): try: - with open(file_path, 'r') as file: + # using utf-8 encoding can avoid error when the txt file contains Chinese. + with open(file_path, 'r', encoding="utf-8") as file: names = [line.strip() for line in file.readlines()] return names except FileNotFoundError: