Chrome Copy Вставить URL с немецким умлаутом меняет символы

643
chromeuser

Я использую Chrome 41 на Windows 7 (классическая тема). В Chrome у меня есть этот http://www.faszinationtür.de/images/PDFs/prospekt49.pdfоткрытый URL-адрес и скопировал его в буфер обмена, результат следующий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

1 ответ на вопрос

0
Kamil Maciorowski

Это выглядит как ASCII-совместимая кодировка . Используйте Punycode Converter, чтобы убедиться, что эти два адреса соответствуют друг другу.