From e46997e78c7da217813bc26ef27fbd830d579aa0 Mon Sep 17 00:00:00 2001 From: Godlike <26649232+godlikeanyone@users.noreply.github.com> Date: Sun, 15 Jan 2023 01:47:54 -0500 Subject: [PATCH] qr Set utf-8 as the default encoding (#120) Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com> --- qr/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qr/main.py b/qr/main.py index 1c24e3e..574a01b 100644 --- a/qr/main.py +++ b/qr/main.py @@ -26,7 +26,7 @@ async def gen_qr(client: Client, message: Message): if not Config.SILENT: await message.edit(lang('genqr_process')) try: - create(text, error="L", mode="binary").png("qr.webp", scale=6) + create(text, error="L", encoding="utf-8", mode="binary").png("qr.webp", scale=6) await client.send_document( message.chat.id, document="qr.webp",