From ff052b69bb8b2c1f4ae20ca026627b45dee0a8a8 Mon Sep 17 00:00:00 2001 From: James Baumgarten Date: Sat, 22 Nov 2014 00:22:55 -0800 Subject: [PATCH] encode strings with utf-8 --- pirate-get.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pirate-get.py b/pirate-get.py index ab57a26..a291060 100755 --- a/pirate-get.py +++ b/pirate-get.py @@ -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: