\JStringPunycode
Joomla Platform String Punycode Class
Class for handling UTF-8 URLs
Wraps the Punycode library
All functions assume the validity of utf-8 URLs.
Synopsis
class JStringPunycode
{
- // methods
- public static string toPunycode()
- public static string fromPunycode()
- public static string urlToPunycode()
- public static string urlToUTF8()
- public static string emailToPunycode()
- public static string emailToUTF8()
Methods
public
- emailToPunycode() — Transforms a UTF-8 e-mail to a Punycode e-mail This assumes a valid email address
- emailToUTF8() — Transforms a Punycode e-mail to a UTF-8 e-mail This assumes a valid email address
- fromPunycode() — Transforms a Punycode string to a UTF-8 string
- toPunycode() — Transforms a UTF-8 string to a Punycode string
- urlToPunycode() — Transforms a UTF-8 URL to a Punycode URL
- urlToUTF8() — Transforms a Punycode URL to a UTF-8 URL