FreeSTAR-Status-Engine/libs/php_idn
Thomas Nilsen d504b0a4cc Add php_idn lib to support IDN/punycode emails
This external library adds functions to encode and decode email
addresses using extended utf-8 character sets. Example
examlpe@bånnibøtta.no

The library is written as simple functions rather than a class.
Original code at https://github.com/IgorVBelousov/php_idn
2018-11-25 17:06:03 +01:00
..
LICENSE Add php_idn lib to support IDN/punycode emails 2018-11-25 17:06:03 +01:00
README.md Add php_idn lib to support IDN/punycode emails 2018-11-25 17:06:03 +01:00
idna.php Add php_idn lib to support IDN/punycode emails 2018-11-25 17:06:03 +01:00

README.md

PHP IDN Punycode

Encode and decode IDN Punycode if not exists internal php functions idn_to_ascii and idn_to_utf8. Functions use algorithm by rfc 3492.

Build Status

function EncodePunycodeIDN( $value ) string

Encode UTF-8 domain name to IDN Punycode

Parameters:

string $value Domain name

Returns:

Encoded Domain name

function DecodePunycodeIDN( $value ) string

Decode IDN Punycode to UTF-8 domain name

Parameters:

string $value Punycode

Returns:

Domain name in UTF-8 charset