From: Vincent Le Gallic Date: Mon, 14 Oct 2013 12:14:56 +0000 (+0200) Subject: User input : Unicode again X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=1572b4fbed22c24d0e76074780265031d72af9ca;p=today.git User input : Unicode again --- diff --git a/today.py b/today.py index e430fd8..26c3e2b 100755 --- a/today.py +++ b/today.py @@ -450,7 +450,7 @@ if __name__ == "__main__": output = ACTIONS[None]() else: commande = sys.argv[1] - args = sys.argv[2:] + args = [s.decode("utf-8") for s in sys.argv[2:]] output = ACTIONS[commande](*args) if output: print output.encode("utf-8")