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