Surftown IDN (ACE/Punycode) encoder and decoder
This standard has now officially replaced the RACE standard previously used for internationalized .com/.net/.org domains.
IDN-encoded 2. level domains always begins with 'xn--', then follows the level 2 segment encoded in punycode.
Domain (raw or IDN'ized):
RFC 3490: Internationalizing Domain Names in Applications (IDNA)
RFC 3491: Nameprep: A Stringprep Profile for Internationalized Domain Names (IDN)
RFC 3492: Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)
Written by Per Gøtterup - Copyright © 2004-2012 by Surftown A/S - Update: 2012-05-18 // PG