A hostname with Unicode characters is valid in Windows 8

╄→尐↘猪︶ㄣ 提交于 2021-02-10 05:43:27

问题


Uri.CheckHostName("контосо.ком") returns UriHostNameType.Unknown everywhere, but on Windows 8, where it returns UriHostNameType.Dns. Any ideas why all of a sudden a hostname with Unicode/Cyrillic characters is valid in Windows 8?


回答1:


Because of this. Internationalized domain name

http://en.wikipedia.org/wiki/Internationalized_domain_name

http://tools.ietf.org/html/rfc5895



来源:https://stackoverflow.com/questions/14075023/a-hostname-with-unicode-characters-is-valid-in-windows-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!