PunycodeHelper

Joomla Platform String Punycode Class

abstract

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) : 
static
since

3.1.2

Arguments

email

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( email) : 
static
since

3.1.2

Arguments

email

stringThe punycode email to transform

Response

stringThe punycode email

fromPunycode

Transforms a Punycode string to a UTF-8 string

fromPunycode( punycodeString) : 
static
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( utfString) : 
static
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( uri) : 
static
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( uri) : 
static
since

3.1.2

Arguments

uri

stringThe Punycode URL to transform

Response

stringThe UTF-8 URL