chrome 复制粘贴带有德语变音符号的 URL 会改变字符

chrome 复制粘贴带有德语变音符号的 URL 会改变字符

我在 Windows 7 上使用 chrome 41(经典主题)。在 chrome 中,我http://www.faszinationtür.de/images/PDFs/prospekt49.pdf打开此网址并将其复制到剪贴板,结果如下http://www.xn--faszinationtr-7ob.de/images/PDFs/prospekt49.pdf

// why does this 
http://www.faszinationtür.de/images/PDFs/prospekt49.pdf
// is copied / pasted as this
http://www.xn--faszinationtr-7ob.de/images/PDFs/prospekt49.pdf

这是按照某种标准进行的奇怪的 URL 重写,还是使用某种 JavaScript 魔法来重写地址栏中的 URL,或者我的计算机被黑客入侵了?

更新以向给定的答案添加详细信息

RFC3492

Punycode is a simple and efficient transfer encoding syntax designed
for use with Internationalized Domain Names in Applications (IDNA).
It uniquely and reversibly transforms a Unicode string into an ASCII
string.  ASCII characters in the Unicode string are represented
literally, and non-ASCII characters are represented by ASCII
characters that are allowed in host name labels (letters, digits, and
hyphens).  This document defines a general algorithm called
Bootstring that allows a string of basic code points to uniquely
represent any string of code points drawn from a larger set.
Punycode is an instance of Bootstring that uses particular parameter
values specified by this document, appropriate for IDNA.

答案1

看起来像ASCII 兼容编码。 使用Punycode 转换器确认这两个地址是对应的。

相关内容