-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
[Bug] Not encoded non-normative characters when in url or href, not seperate non-normative characters from English ones #70449
Comments
(Experimental duplicate detection) |
@vscodebot:Not a duplicate question. |
Please share the text of the code along with screenshots |
@mjbvz:Thanks for your very quick reply, here's the text for your demo to reproduce this issue ——
|
Thanks. Linked text for quick future reference: http://www.baidu.com。
http://www.baidu.com汉字。
mailto:[email protected]。
mailto:[email protected]我们。 |
@mjbvz:Suddenly got an idea of how to encode these non-normative characters? According to RFC 1738, It says——
It seems that you can keep the Chinese characters but just do something like 'encodeURI' or 'encodeURIComponent'……What do you think of this?If you are OK with this idea, I'll change my topic. This means that you can say 'http://www.baidu.com汉字' as what it is, but when clicking it, it will automatically encode "汉字" by using something like 'encodeURI'. So 'http://www.baidu.com。' should encode '。', because this isn't a normative character. But for mailto, we should still seperate non-normative characters from the English ones. Just waiting for your ideas on this. |
Closing since there hasn't been any further interest in this issue for two years. We'd still take a PR if someone want to try to fix this and the solution is reasonable enough |
Steps to Reproduce:
The "汉字" (or other non-lartain characters) shouldn't be included as the part of Url or href, or mailto:
Ref:nodejs/nodejs.org#1612
The text was updated successfully, but these errors were encountered: