1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

encode strings with utf-8

This commit is contained in:
James Baumgarten 2014-11-22 00:22:55 -08:00
parent 85d2fdf3a7
commit ff052b69bb

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: