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(string email) : string
| since |
3.1.2 |
|---|
Arguments
stringThe UTF-8 email to transform
Response
stringThe punycode email
emailToUTF8
Transforms a Punycode email to a UTF-8 email This assumes a valid email address
emailToUTF8(string email) : string
| since |
3.1.2 |
|---|
Arguments
stringThe punycode email to transform
Response
stringThe punycode email
fromPunycode
Transforms a Punycode string to a UTF-8 string
fromPunycode(string punycodeString) : string
| since |
3.1.2 |
|---|
Arguments
- punycodeString
stringThe Punycode string to transform
Response
stringThe UF-8 URL
toPunycode
Transforms a UTF-8 string to a Punycode string
toPunycode(string utfString) : string
| since |
3.1.2 |
|---|
Arguments
- utfString
stringThe UTF-8 string to transform
Response
stringThe punycode string
urlToPunycode
Transforms a UTF-8 URL to a Punycode URL
urlToPunycode(string uri) : string
| since |
3.1.2 |
|---|
Arguments
- uri
stringThe UTF-8 URL to transform
Response
stringThe punycode URL
urlToUTF8
Transforms a Punycode URL to a UTF-8 URL
urlToUTF8(string uri) : string
| since |
3.1.2 |
|---|
Arguments
- uri
stringThe Punycode URL to transform
Response
stringThe UTF-8 URL