From bcd634ef6deb9b0056b5c5d86182f782f3782761 Mon Sep 17 00:00:00 2001 From: Case3y Date: Fri, 12 May 2023 15:13:47 +0800 Subject: [PATCH] fix UnicodeDecodeError --- scripts/instantiate-code-fonts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/instantiate-code-fonts.py b/scripts/instantiate-code-fonts.py index 71451c9..f9fe233 100644 --- a/scripts/instantiate-code-fonts.py +++ b/scripts/instantiate-code-fonts.py @@ -40,7 +40,7 @@ fontPath = glob.glob('./font-data/Recursive_VF_*.ttf')[0] # allows script to run without font path passed in. # read yaml config -with open(configPath) as file: +with open(configPath, encoding='utf-8') as file: fontOptions = yaml.load(file, Loader=yaml.FullLoader) # GET / SET NAME HELPER FUNCTIONS