You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, an URL like http://äläomista.fi/ is legal and works with a browser.
There is a catch: the web client should translate the dns names with non-ascii (UTF-8) chars properly,
and this example domain would translate into xn--lomista-4wab.fi
Okay, I was able to get away with this kind of code:
if let Ok(url) = Url::parse(url_s) {
// Now we should have a canonical url, IDN handled etc.
let url_c = String::from(url);
// ... continue processing
}
Hi @sjm42, thanks for flagging, and glad to hear you were able to work this out.
I'm keeping this issue open since I think it should be part of the library, but I won't be able to work on it anytime soon
For example, an URL like http://äläomista.fi/ is legal and works with a browser.
There is a catch: the web client should translate the dns names with non-ascii (UTF-8) chars properly,
and this example domain would translate into xn--lomista-4wab.fi
More info can be found here:
https://en.wikipedia.org/wiki/Internationalized_domain_name#Example_of_IDNA_encoding
The text was updated successfully, but these errors were encountered: