Converts between a string and a custom character set.

Supports all unicode characters.

Constructors

Properties

Methods

Constructors

  • Creates a new instance of the CharacterSetConverter class.

    Parameters

    • customCharset: string

      The custom character set to use.

    Returns Globals.modules.utils.CharacterSetConverter

    If the custom character set is less than 2 characters in length.

Properties

customCharset: string

The custom character set to use.

Methods

  • Decodes a string using the custom character set.

    Parameters

    • input: string

      The string to decode.

    Returns string

    The decoded string.

  • Encodes a string using the custom character set.

    Parameters

    • input: string

      The string to encode.

    Returns string

    The encoded string.