diff --git a/grandbot.py b/grandbot.py index 181e9ceb..3cb171b4 100644 --- a/grandbot.py +++ b/grandbot.py @@ -125,7 +125,7 @@ Sintassi: `/leggi `""" await update.message.reply(bot, "⚠ Sintassi del comando non valida.\n`/leggi `", parse_mode="Markdown") return # Open the file - file = open("diario.txt", "r") + file = open("diario.txt", "r", encoding="utf8") # Split the data in lines entries = file.read().split("\n") file.close() @@ -159,7 +159,7 @@ async def leggi_discord(bot, message, arguments): await bot.send_message(message.channel, "⚠ Sintassi del comando non valida.\n`!leggi `") return # Open the file - file = open("diario.txt", "r") + file = open("diario.txt", "r", encoding="utf8") # Split the data in lines entries = file.read().split("\n") file.close()