Decodes a domain name into UTF-8 if it was originally in Punycode ASCII.
Decodes a domain name into UTF-8 if it was originally in Punycode ASCII.
If the domain name is already UTF-8 no change occurs. The original format (Punycode or UTF-8) is saved in decoded.
the domain name
the UTF-8 domain name
determines if the original format was Punnycode ASCII.
determines if the original format was Punnycode ASCII. The original format is set in decode.
true if the original format was Punnycode ASCII
Returns the UTF-8 domain name in the original format.
Returns the UTF-8 domain name in the original format.
The original format is Punycode ASCII or UTF-8. The format is determined in decode.
the UTF-8 domain name
the domain name in the original format
Automatic Punycode Codec.
This codec remembers the input type as encoded or not. The recode() method will return the same format as the original input.