Class for encoding/decoding on international domainnames using Punycode; ASCII-mode
!! Please note that Punycode is meant to be used with Unicode-strings. This ASCII-class is just provided for convenience if you can be sure you just need to encode strings with usual ASCII-characters. If possible (e.g. supported by your webserver) it's highly recommended that you use I18N_Punycode_Unicode. !!
Located in /Punycode.php (line 55)
Class | Description |
---|---|
I18N_Punycode_Unicode | Class for encoding/decoding on international domainnames using Punycode; Unicode-mode |
Decode the given string/domainname from Punycode
!! Please note that this class does not use full punycode encoding. This is caused by using only a limited set of characters that can be represented using ASCII. If possible on your system we strongly suggest to use I18N_Punycode_Unicode instead. !!
Encode the given string/domainname using Punycode
As a first step "nameprep" is applied to the input-string. Then all non-basic code-points using the Punycode-algorithm. !! Please note that this class does not use full nameprep/punycode encoding. This is caused by using only a limited set of characters that can be represented using ASCII. If possible on your system we strongly suggest to use I18N_Punycode_Unicode instead. !!
Create a new I18N_Punycode_ASCII object
This function exists because the Unicode-version of this class (I18N_Punycode_Unicode) can interface with various unicode-extensions and needs to be able to return error-objects when a new object is created.
Documentation generated on Sun, 9 May 2004 19:35:30 +0200 by phpDocumentor 1.3.0RC2