mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-11-19 10:41:46 -05:00
96f79ee725
This reverts commit8d571547f5
, reversing changes made toe96df7015e
.
31 lines
644 B
Markdown
31 lines
644 B
Markdown
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](https://travis-ci.org/IgorVBelousov/php_idn.svg?branch=master)](https://travis-ci.org/IgorVBelousov/php_idn)
|
|
|
|
**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 |