diff --git a/astrbot/core/db/sqlite.py b/astrbot/core/db/sqlite.py index 65d68526e..3a4f6c1b8 100644 --- a/astrbot/core/db/sqlite.py +++ b/astrbot/core/db/sqlite.py @@ -491,6 +491,7 @@ class SQLiteDatabase(BaseDatabase): # 搜索关键词 if search_query: + search_query = search_query.encode("unicode_escape").decode("utf-8") where_clauses.append( "(title LIKE ? OR user_id LIKE ? OR cid LIKE ? OR history LIKE ?)" )