mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-25 10:42:25 -04:00
This reverts commit 8d571547f59d28bae823ddb0f7102f4a56bd4883, reversing changes made to e96df7015eaeb9027501e0f04424c7706f689668.
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.
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