Skip navigation

UIWebView and International (foreign) domain - punycode support

635 Views 2 Replies Latest reply: Nov 25, 2013 5:15 AM by gauravpradipjoshi RSS
onecount Level 1 Level 1 (0 points)
Currently Being Moderated
Jun 23, 2012 9:00 AM

I am having trouble loading and displaying pages through UIWebView when the URL has foreign text inside the domain part of it. Such URLs are called IDNs and according to the standards (RFC 3490 and 3492), they need to be converted to the corresponding punycode.

For example, this URL :



I cannot get it to load and display in UIWebView (getting load error). From Safari, it works fine. Are there APIs in iOS to convert this to the punycode? Is there another way to load this URL from the UIWebView?

This particular URL must be convertd to this punycode "http://xn--9n2bp8q.xn--9t4b11yi5a" before it is sent out but I can't find a way (an API) to do this or get UIWebView to do this. Thanks.

iPhone 4S, iOS 5


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.