A
A
Alex2021-11-03 03:18:45
C++ / C#
Alex, 2021-11-03 03:18:45

How to detect and convert Punycode in url?

There are many different url addresses, they also contain Cyrillic host names.
How to understand that a given URL has a host in Punycode, so that later it can be decrypted from Punycode using System.Globalization.IdnMapping?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-11-03
@vabka

Domain names in punycode begin with "xn--"
And each segment is separate, including zero.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question