diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index ce28b5e8..51d6fba5 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -106,6 +106,7 @@ def change_translation(locale): lang = pythonlocale.normalize(l10n.getTranslationLanguage()) try: pythonlocale.setlocale(pythonlocale.LC_ALL, lang) + l10n.encoding = pythonlocale.nl_langinfo(pythonlocale.CODESET) except: logger.error("Failed to set locale to %s", lang, exc_info=True)