From 0ec3b3a3b95bd4dc36d2d24184404c5fc41b75b6 Mon Sep 17 00:00:00 2001 From: LibraHp_0928 <1941163264@qq.com> Date: Wed, 13 Nov 2024 17:50:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=A5=E9=94=99'utf-8'code?= =?UTF-8?q?ccan'tdecodebyteOxbeinposition492?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a1ed3c0..3c5c14c 100644 --- a/main.py +++ b/main.py @@ -1142,8 +1142,8 @@ def main(page: ft.Page): for i in range(int(count / 100) + 1): try: # 获取消息并解码 - message_content = get_message(i * 100, 100).content - message = message_content.decode('utf-8') if message_content else None + message_content = get_message(i * 100, 100).text + message = message_content if message_content else None # if is_debug: # log(message, "DEBUG") # 确保消息内容存在