有什么办法可以避免显示“xn--"?对于 IDN 域? [英] Is there any way to avoid showing "xn--" for IDN domains?

查看:23
本文介绍了有什么办法可以避免显示“xn--"?对于 IDN 域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我使用诸如 www.äöü.com 之类的域,有什么办法可以避免它在用户中显示为 www.xn--4ca0bs.com' 浏览器?

If I use a domain such as www.äöü.com, is there any way to avoid it being displayed as www.xn--4ca0bs.com in users’ browsers?

我猜,诸如 www.xn--4ca0bs.com 之类的域名会给普通互联网用户带来很多困惑.

Domains such as www.xn--4ca0bs.com cause a lot of confusion with average internet users, I guess.

推荐答案

这完全取决于浏览器.事实上,IDN 几乎是一种仅限浏览器的技术.域名不能包含非 ASCII 字符,因此实际域名始终是 Punycode 编码的 xn--... 形式.由浏览器来美化这一点,但许多人选择不这样做,以避免使用相似的 Unicode 字符进行域名欺骗.

This is entirely up to the browser. In fact, IDNs are pretty much a browser-only technology. Domain names cannot contain non-ASCII characters, so the actual domain name is always the Punycode encoded xn--... form. It's up to the browser to prettify this, but many choose to not do so to avoid domain name spoofing using lookalike Unicode characters.

这篇关于有什么办法可以避免显示“xn--"?对于 IDN 域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆