mirror of
https://github.com/Finb/Bark.git
synced 2026-04-26 06:25:55 +03:00
[GH-ISSUE #137] 带中文的 URL 推送,点击不能跳转 #126
Labels
No labels
bug
enhancement
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Bark#126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ryanlid on GitHub (Feb 16, 2022).
Original GitHub issue: https://github.com/Finb/Bark/issues/137
例如:
推送后,点击推送消息,不能跳转打开 URL地址
@Finb commented on GitHub (Feb 16, 2022):
URL规范中不允许出现中文, 常见的浏览器上显示出中文都是浏览器做了一个转换,实际复制下来的真实URL是如下面这样的。
https://www.baidu.com/s?wd=%E4%B8%AD%E6%96%87 ,传递也应该传这样的
简单点处理,就是URL中的参数部分如果出现特殊字符,则加一层URL编码(最好无脑加一层)
https://www.baidu.com/s?wd={url编码后的参数值}
complection->completion) #306