From c1584d06fa5dd4d90c471505b20ff451857bf5cb Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 21 Sep 2020 10:58:33 +0100 Subject: [PATCH] EDMarketConnector.py: Tweak setting of UTF-8. "UTF-8" is the official name, although it results in the same "utf8" afterwards in this case. --- EDMarketConnector.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index a3e46aac..ccfac5fe 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -1071,8 +1071,9 @@ sys.path: {sys.path}''' logger.debug(f'Locale LC_ALL: {locale_startup}') # Now set that same language, but utf8 encoding (it was probably cp1252 # or equivalent for other languages). - locale.setlocale(locale.LC_ALL, (locale_startup[0], 'utf8')) - log_locale('After switching to utf8 encoding (same language)') + # UTF-8, not utf8: + locale.setlocale(locale.LC_ALL, (locale_startup[0], 'UTF-8')) + log_locale('After switching to UTF-8 encoding (same language)') # TODO: unittests in place of these # logger.debug('Test from __main__')