Open diegoolavarria opened 4 years ago
The same I got with https://xn--d1aqf.xn--p1ai/
, which should be https://дом.рф/
, but this lib returns https://xn--d1aqf.эрф
.
uri-js
seems working for me.
URI.serialize(URI.parse("http://xn--exampl-gva.org/ros%C3%A9"), {iri:true})
UPD: that was my bad, Punycode works only with domains (hostnames; be careful: without ports), so I've changed the code to ugly one:
That's it. A week ago I was able to convert emails with "xn--" to Unicode, and now it isn't.