fix(export) html charset 修复html格式导出没带字符集导致重新导入乱码的问题#1775
Merged
coltea merged 1 commit intochaitin:mainfrom Mar 23, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 修复了 Admin 端文档编辑器导出 HTML 时未指定字符集,导致导出后再导入出现乱码的问题,通过在导出内容与 MIME type 中显式声明 UTF-8 来提升可移植性与再导入兼容性。
Changes:
- 导出 HTML 时设置
text/html;charset=utf-8的 Blob MIME type。 - 导出 HTML 时为内容补齐完整 HTML 文档结构,并在
<head>中加入<meta charset="utf-8" />与<title>。
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d4d4944 to
77f67eb
Compare
KuaiYu95
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 标题
fix(export) html charset 修复html格式导出没带字符集导致重新导入乱码的问题
变更类型
请勾选适用的变更类型:
变更内容
详细描述本次 PR 的具体变更内容:
测试情况
描述本次变更的测试情况:
其他说明
任何其他需要说明的事项: