From 53fbb5b027eec1ad50ad17d84e3690576321fbd9 Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Wed, 27 Dec 2023 17:48:49 +0800 Subject: [PATCH] fixbug --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index a206026..1a0bb27 100644 --- a/__init__.py +++ b/__init__.py @@ -275,7 +275,7 @@ async def mixlab_hander(request): async def mixlab_app_handler(request): html_file = os.path.join(current_path, "web/index.html") if os.path.exists(html_file): - with open(html_file, 'r') as f: + with open(html_file, 'r', encoding='utf-8', errors='ignore') as f: html_data = f.read() return web.Response(text=html_data, content_type='text/html') else: