mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 19:03:23 +03:00
EDMarketConnector.py: Tweak setting of UTF-8.
"UTF-8" is the official name, although it results in the same "utf8" afterwards in this case.
This commit is contained in:
parent
10524c89dc
commit
c1584d06fa
@ -1071,8 +1071,9 @@ sys.path: {sys.path}'''
|
|||||||
logger.debug(f'Locale LC_ALL: {locale_startup}')
|
logger.debug(f'Locale LC_ALL: {locale_startup}')
|
||||||
# Now set that same language, but utf8 encoding (it was probably cp1252
|
# Now set that same language, but utf8 encoding (it was probably cp1252
|
||||||
# or equivalent for other languages).
|
# or equivalent for other languages).
|
||||||
locale.setlocale(locale.LC_ALL, (locale_startup[0], 'utf8'))
|
# UTF-8, not utf8: <https://en.wikipedia.org/wiki/UTF-8#Naming>
|
||||||
log_locale('After switching to utf8 encoding (same language)')
|
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
|
# TODO: unittests in place of these
|
||||||
# logger.debug('Test from __main__')
|
# logger.debug('Test from __main__')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user