PunycodeHelper
Joomla Platform String Punycode Class
Class for handling UTF-8 URLs Wraps the Punycode library All functions assume the validity of utf-8 URLs.
since |
3.1.2 |
---|---|
package |
Joomla CMS |
Methods
emailToPunycode
Transforms a UTF-8 email to a Punycode email This assumes a valid email address
emailToPunycode( email) :
since |
3.1.2 |
---|
Arguments
string
The UTF-8 email to transform
Response
string
The punycode email
emailToUTF8
Transforms a Punycode email to a UTF-8 email This assumes a valid email address
emailToUTF8( email) :
since |
3.1.2 |
---|
Arguments
string
The punycode email to transform
Response
string
The punycode email
fromPunycode
Transforms a Punycode string to a UTF-8 string
fromPunycode( punycodeString) :
since |
3.1.2 |
---|
Arguments
- punycodeString
string
The Punycode string to transform
Response
string
The UF-8 URL
toPunycode
Transforms a UTF-8 string to a Punycode string
toPunycode( utfString) :
since |
3.1.2 |
---|
Arguments
- utfString
string
The UTF-8 string to transform
Response
string
The punycode string
urlToPunycode
Transforms a UTF-8 URL to a Punycode URL
urlToPunycode( uri) :
since |
3.1.2 |
---|
Arguments
- uri
string
The UTF-8 URL to transform
Response
string
The punycode URL
urlToUTF8
Transforms a Punycode URL to a UTF-8 URL
urlToUTF8( uri) :
since |
3.1.2 |
---|
Arguments
- uri
string
The Punycode URL to transform
Response
string
The UTF-8 URL