Well, I just read an article about IDN urls and how they are used for phishing. One of the examples given was https://www.xn--80ak6aa92e.com/ (not apple) which shows in some browsers as apple.com. Anway, when I paste that url in Konversation and click on it to open it, an error message pops up: Malformed URL Invalid hostname (contains invalid characters); source was "https://www..com/"; scheme = "https", host = "", path = "/" The URL is correct but it seems Konversation can't handle IDN urls properly.
So far it seems the problem is QUrl::toEncoded() not returning the punycoded url
Seems it's some form of phishing protection in QUrl that kicks in as other punycode urls works fine. For example http://xn--6kry05bl4a.no works fine. So I'll close this one as phishing isn't really a good usecase. ;)