PHP Net_IDNA is a class to convert between the Punycode and Unicode formats. Punycode is a standard described in RFC 3492 and part of IDNA (Internationalizing Domain Names in Applications [RFC3490]) . This class allows PHP scripts to convert these domain names without having one of the PHP extensions installed. It supports both IDNA 2003 and IDNA 2008.
|Tags||Software Development Libraries php classes Internet DNS Localization Utilities|
|Operating Systems||OS Independent|
Release Notes: The example page contained a possible XSS attack, which has been fixed.
Release Notes: The class now fully supports IDNA 2008 and fixes some minor issues with mb_string. Read the supplied ReadMe to learn how to switch between IDNA 2003 and 2008.
Release Notes: This build fixes a bug initializing the replace map for the German ß on construct. Additionally, setting whether to convert the ß or not via set_parameter() had no effect.
Release Notes: This build can convert the German ligature ß into Punycode (in fact, this is the default). The change was required, since DeNIC, the registry for .de domains, now allows this character in domain names. A configuration option to enable the old behaviour is available.
Release Notes: This version adds the method encode_uri() to specifically convert the host name part of a whole URI to Punycode but leave the other components (path, query string, etc.) alone. The code has been cleaned up a little.