fix language encoding in Python3

Change-Id: I01ea074d7c72c7887c979dd0c0bc63688a5f73eb
This commit is contained in:
Frank Kloeker 2018-09-21 14:37:12 +02:00
parent cb5270543e
commit 4b89a6635d
1 changed files with 1 additions and 1 deletions

View File

@ -19,6 +19,6 @@ import babel
lang_code = sys.argv[1]
try:
l = babel.Locale.parse(lang_code)
print(l.get_display_name().encode('utf-8'))
print(l.get_display_name())
except Exception:
print(lang_code)