From f4139281cad8d8048de4630bb13def67e0b3cb85 Mon Sep 17 00:00:00 2001 From: "venter.zhu" Date: Wed, 1 Apr 2020 10:25:07 +0800 Subject: [PATCH] [fix]some translation not work better --- superset/translations/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/translations/utils.py b/superset/translations/utils.py index 2e50cc7e981ac..bfb12bbe34c1d 100644 --- a/superset/translations/utils.py +++ b/superset/translations/utils.py @@ -36,7 +36,7 @@ def get_language_pack(locale): if not pack: filename = DIR + "/{}/LC_MESSAGES/messages.json".format(locale) try: - with open(filename) as f: + with open(filename, encoding="utf8") as f: pack = json.load(f) ALL_LANGUAGE_PACKS[locale] = pack except Exception: # pylint: disable=broad-except