This is an automated email from the ASF dual-hosted git repository. villebro pushed a commit to branch 0.36 in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 28254825481cf5e096bc32c2a6af1ab66ee1f278 Author: venter <[email protected]> AuthorDate: Wed Apr 1 19:00:23 2020 -0500 [fix]some translation not work better (#9428) --- 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 2e50cc7..bfb12bb 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
