1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Merge pull request #38 from jebaum/fix-unicode

encode strings with utf-8
This commit is contained in:
Viktor Stanchev 2014-11-22 01:34:54 -08:00
commit a8aa82c7e9

View File

@ -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: