PunycodeHelper
class 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.
Methods
static
string
toPunycode(
string $utfString)
Transforms a UTF-8 string to a Punycode string
static
string
fromPunycode(
string $punycodeString)
Transforms a Punycode string to a UTF-8 string
static
string
urlToPunycode(
string $uri)
Transforms a UTF-8 URL to a Punycode URL
static
string
urlToUTF8(
string $uri)
Transforms a Punycode URL to a UTF-8 URL
static
string
emailToPunycode(
string $email)
Transforms a UTF-8 email to a Punycode email This assumes a valid email address
static
string
emailToUTF8(
string $email)
Transforms a Punycode email to a UTF-8 email This assumes a valid email address