mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-09 09:59:51 +01:00
Merge pull request #38 from jebaum/fix-unicode
encode strings with utf-8
This commit is contained in:
commit
a8aa82c7e9
@ -214,7 +214,7 @@ def main():
|
||||
"""Print with colors"""
|
||||
try:
|
||||
c = color_dict[kwargs.pop("color")]
|
||||
args = (c + str(args[0]),) + args[1:] + (colorama.Style.RESET_ALL,)
|
||||
args = (c + str(args[0].encode('utf-8')),) + args[1:] + (colorama.Style.RESET_ALL,)
|
||||
except KeyError as e:
|
||||
pass
|
||||
except IndexError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user