更新时间:2023-11-12 15:29:34
要连接到IDN(国际域名)网址,你需要在Punycode中对它们进行编码。例如,此网址将编码为 http://xn--d1abbgf6aiiy.xn--p1ai 。
To connect to IDN (international domain name) URLs, you need to encode them in Punycode. For example, this URL would be encoded as http://xn--d1abbgf6aiiy.xn--p1ai.
不幸的是,我不知道iOS中有任何内置的punycode支持。但是有第三方工具,如 NSURL-IDN (摘自 OmniNetworking 库。)
Unfortunately I don't know of any built-in punycode support in iOS. But there are third-party tools like NSURL-IDN (which is extracted from the OmniNetworking library).