Skip to content

Fix issus incorrect display of Unicode weibo nick name - #257

Merged
yanglbme merged 2 commits into
doocs:mainfrom
noonhorse:fix/weiboName
Oct 17, 2026
Merged

yanglbme merged 2 commits into
doocs:mainfrom
noonhorse:fix/weiboName

Conversation

@noonhorse

Copy link
Copy Markdown
Contributor

Summary / 概述

对微博下用户昵称的 \uXXXX 编码进行转义修复。

Related Issue / 关联 Issue

Closes #207

Type of Change / 更改类型

  • Bug fix / 修复 Bug (non-breaking change that fixes an issue / 修复问题的非破坏性更改)
  • New feature / 新功能 (non-breaking change that adds functionality / 添加功能的非破坏性更改)
  • Breaking change / 破坏性更改 (fix or feature that would cause existing functionality to not work as expected / 会导致现有功能无法正常工作的修复或功能)
  • Documentation update / 文档更新
  • Performance improvement / 性能优化
  • Code refactoring / 代码重构
  • Other / 其他 (please describe / 请描述):

Changes Made / 更改内容

Implementation Details / 实现细节

Key Changes / 主要更改:

  • Technical Notes / 技术说明:

  • 1、检测用户名是否存在Unicode编码

  • 2、如果存在则执行解码

  • 3、如果不存在再深度查看有没有双重转义的情况

Testing / 测试

Testing Checklist / 测试清单

  • I have tested this code locally / 我已在本地测试此代码
  • All existing tests pass / 所有现有测试通过
  • I have added tests for new functionality / 我已为新功能添加测试
  • I have tested on the affected platform(s) / 我已在受影响的平台上测试
  • I have verified the changes work in the target browser(s) / 我已验证更改在目标浏览器中有效

Manual Testing Steps / 手动测试步骤

  1. 点击md doocs 页面右上角 发布 按钮
  2. 查看已经登录的微博用户昵称显示是否正常

Screenshots/Videos / 截图/视频

修改前微博下中文为Unicode编码
image

修改后微博名字能正常显示
image

Reviewer Checklist / 审阅者清单

  • Code follows the project's style guidelines / 代码遵循项目的风格指南
  • Changes are well-documented / 更改有良好的文档说明
  • No breaking changes or clearly documented if present / 无破坏性更改,或已清楚记录
  • Security implications have been considered / 已考虑安全影响
  • Performance impact has been evaluated / 已评估性能影响
  • All discussions have been resolved / 所有讨论已解决

Additional Notes / 补充说明

@yanglbme
yanglbme merged commit 767fe2a into doocs:main Oct 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 微博登录后获取的用户名是Unicode编码格式

2 participants