[closed] asked 13 years, 9 months ago modified 3 years ago viewed 115k times It it based on the c code in rfc 3492 I was inspecting the full list of iana top level domains and came across some uncommon ones, but also some very uncommon ones, particularly 153 top level domains starting with xn
If on top of that, you want to check wether the domain is in the idn form, split the domain at the dots I took the time to create the punycode below If in addition to that, you want to check if the domain is idn and is valid, just attempt to decode it with the library's decode function.
The answers here are obsolete as of 2023 Browsers now disregard homographs when deciding how to display domain names (but fyi, registries have rules regarding registering homograph domains). You need first to remove the ds record at parent, it will only hinder your effort to put back your dns in a working way. I had never seen this form, always something like ᗷ.