From 05469f5fc4c3850e5b986353b7d17aedfda7ec81 Mon Sep 17 00:00:00 2001 From: liangweihao <734499798@qq.com> Date: Tue, 10 Feb 2026 22:26:36 +0800 Subject: [PATCH] new blog --- src/content/posts/note/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/posts/note/index.md b/src/content/posts/note/index.md index acfefa6..c4800cb 100644 --- a/src/content/posts/note/index.md +++ b/src/content/posts/note/index.md @@ -273,7 +273,9 @@ if __name__ == "__main__": 'gbk' codec can't encode character '\u2022' in position 687: illegal multibyte sequence ``` 现象:在数据库中查询是正常的,python查询、保存时会报错。 + 原因:默认是gbk编码,无法解析特殊字符。 + 解决方案: 需要指定编码格式 ```python