Skip to content
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

qmlf 不支持非 ASCII 字符 #3

Open
ZgblKylin opened this issue Jul 26, 2020 · 0 comments
Open

qmlf 不支持非 ASCII 字符 #3

ZgblKylin opened this issue Jul 26, 2020 · 0 comments

Comments

@ZgblKylin
Copy link
Contributor

ZgblKylin commented Jul 26, 2020

qmlf 仅支持 ASCII 编码字符,文件中不能出现中文字符(包括有的官方文档中的…符号)。

建议做如下改进:

  1. 通过 UTF-8 编码读取文件。

  2. 生成链接时,将非 url 字符转换为 % 转义格式
    [更多内容...](#详细描述)
    应转换为 [更多内容...](#%E8%AF%A6%E7%BB%86%E6%8F%8F%E8%BF%B0)
    只应转换 # 后的部分,否则文件链接中的 / 会被转义。

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

No branches or pull requests

1 participant