add utf8 encoding

This commit is contained in:
tigeren 2024-08-18 18:07:13 +08:00
parent 0074e954dd
commit 9eddfae238
5 changed files with 2 additions and 2 deletions

BIN
output - 副本 (2).xlsx Normal file

Binary file not shown.

BIN
output - 副本.xlsx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -106,7 +106,7 @@ api_key = '25bda2c39c0f8ca0'
api_secret = 'e0008b9b9727cb8ceea5a132dbe62495'
token = get_access_token(api_key, api_secret)
assistant_id = "669e203f9752cb52401d2871"
assistant_id = "66a9feedfc354408c4de57dc"
access_token = token
excelData = []
@ -114,7 +114,7 @@ excelData = []
# load customer aqusition process
for index in range(0, 4):
file_path = f'customer_aqusition_{index}.json'
customer_aqusition_process = json.loads(open(file_path, 'r').read())
customer_aqusition_process = json.loads(open(file_path, 'r',encoding='utf-8').read())
customer_aqusition_process = process_nodes(customer_aqusition_process)
excelData.append(customer_aqusition_process)