TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why do Greek or Russian characters get URL encoded?

1 点作者 greeklish超过 3 年前
Why don&#x27;t browsers URL encode just the special characters such as <i>?</i>, <i>&amp;</i> and <i>whitespaces</i> when a URL is copied?<p>The resulting URLs would be much cleaner and easier to understand for native speakers.

2 条评论

ignoranceprior超过 3 年前
I think technically a URL&#x2F;URI is only supposed to contain ASCII characters, and certain things that expect URL input will want ASCII only. However, all modern browsers can convert from Unicode to punycode (in the domain name) and percent-encoding (in the path). So I don&#x27;t really understand why browsers only let you copy the percent-encoded form easily.
WizardOfLight超过 3 年前
It’s to avoid malware domains and similar applications of various malfeasance. In short, because they can be used to obfuscate the actually intended url copied, such as fасеbook &lt;— this has Cyrillic characters in it you can’t otherwise notice.
评论 #28859019 未加载