FreeSTAR-Status-Engine/libs/php_idn
2023-03-12 11:39:38 +01:00
..
idna.php fix 'Array and string offset access using curly braces' deprecated error 2023-03-12 11:39:38 +01:00
LICENSE Revert "Merge pull request #135 from server-status-project/master" 2020-11-05 16:54:04 +03:00
README.md Revert "Merge pull request #135 from server-status-project/master" 2020-11-05 16:54:04 +03:00

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