-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 fix: fix invalid utf8 character #5732
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 @arvinxx Thank you for raising your pull request and contributing to our Community |
TestGru AssignmentSummary
Files
Tip You can |
TestGru AssignmentSummary
Files
Tip You can |
TestGru AssignmentSummary
Files
Tip You can |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5732 +/- ##
=========================================
Coverage 92.08% 92.09%
=========================================
Files 647 648 +1
Lines 57897 57913 +16
Branches 2712 4273 +1561
=========================================
+ Hits 53317 53333 +16
Misses 4580 4580
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
TestGru AssignmentSummary
Files
Tip You can |
❤️ Great PR @arvinxx ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
### [Version 1.50.4](v1.50.3...v1.50.4) <sup>Released on **2025-02-04**</sup> #### 🐛 Bug Fixes - **misc**: Fix invalid utf8 character. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix invalid utf8 character, closes [#5732](#5732) ([2905cb5](2905cb5)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.50.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.92.3](v1.92.2...v1.92.3) <sup>Released on **2025-02-05**</sup> #### 🐛 Bug Fixes - **misc**: Fix invalid utf8 character. #### 💄 Styles - **misc**: Add/Update Aliyun Cloud Models, update GitHub Models, update model locale. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix invalid utf8 character, closes [lobehub#5732](https://github.com/bentwnghk/lobe-chat/issues/5732) ([2905cb5](2905cb5)) #### Styles * **misc**: Add/Update Aliyun Cloud Models, closes [lobehub#5613](https://github.com/bentwnghk/lobe-chat/issues/5613) ([95cd822](95cd822)) * **misc**: Update GitHub Models, closes [lobehub#5683](https://github.com/bentwnghk/lobe-chat/issues/5683) ([ed4e048](ed4e048)) * **misc**: Update model locale, closes [lobehub#5731](https://github.com/bentwnghk/lobe-chat/issues/5731) ([d3d26d7](d3d26d7)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information
invalid byte sequence for encoding "UTF8": 0x00
这个错误是因为数据中包含了无效的 UTF-8 字符序列,特别是出现了 NULL 字节(\u0000)。PostgreSQL 在处理 UTF-8 编码的文本数据时,不允许包含 NULL 字节。
content 字段包含了一些二进制数据(以 \u0002\u0000\u0000\u0002 开头),这些数据不是有效的 UTF-8 文本。
解决这个问题有几种方案:
建议: