From 26886fd1463f6f0f5a8f8c10266fd748a7bc5ee7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 21 Sep 2016 16:43:28 +0200 Subject: [PATCH] =?UTF-8?q?Magari=20cos=C3=AC=20si=20possono=20mettere=20e?= =?UTF-8?q?moji=20nel=20/diario=20=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index c6a66249..29f26a6e 100644 --- a/bot.py +++ b/bot.py @@ -396,7 +396,7 @@ def diario(): cmd = text.split(" ", 1) if len(cmd) > 1: if cmd[1].isprintable(): - cmd[1] = cmd[1].replace("\n", " ") + cmd[1] = cmd[1].replace("\n", " ").encode("unicode_escape") fdiario = filemanager.readfile("diario.txt") fdiario += str(int(time.time())) + "|" + cmd[1] + "\n" filemanager.writefile("diario.txt", fdiario)