From 2018c7e3a24cd5d5fe964335af8b892a52b9c64c Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 5 Aug 2024 21:28:24 +0200 Subject: [PATCH] fix: support special character --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 07894ab..4976cae 100644 --- a/main.py +++ b/main.py @@ -2,7 +2,7 @@ import json from Book import Book # Opening JSON file -f = open('constructor.json') +f = open('constructor.json', encoding='utf-8') data = json.load(f)