From f06603a0db57ef325ac934fe3025765277e0e475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Sat, 13 Mar 2021 00:46:53 +0100 Subject: [PATCH] force utf8 --- TTS/utils/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/utils/manage.py b/TTS/utils/manage.py index b2b93eac..ef77ca4e 100644 --- a/TTS/utils/manage.py +++ b/TTS/utils/manage.py @@ -43,7 +43,7 @@ class ModelManager(object): Args: file_path (str): path to .models.json. """ - with open(file_path) as json_file: + with open(file_path, "r", encoding="utf-8") as json_file: self.models_dict = json.load(json_file) def list_langs(self):