From 95a85a96022c16f0fe9c5b3e4e43d7b7ab62e76e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 20 Jan 2017 13:21:58 +0100 Subject: [PATCH] boh! --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index b26d4875..21ba2e72 100644 --- a/bot.py +++ b/bot.py @@ -481,8 +481,8 @@ def getrygimage(): directory = "/var/www/html/rygimages/{}.png" infile = open("/royal/bot/basiclogo.svg", "r") print(infile.read()) - indata = infile.read().format(cmd[1]).encode() - print(indata.decode()) + indata = infile.read().format(cmd[1]).encode("utf-8") + print(indata.decode("utf-8")) infile.close() try: outfile = open(directory.format(cmd[1]), "x")