Options
All
  • Public
  • Public/Protected
  • All
Menu

Utilities related to string and text character encoding, converting between formats, and perform common encoding operations.

Hierarchy

  • EncodingUtils

Index

Methods

Static unicodeEscapedCharsToUtf8

  • unicodeEscapedCharsToUtf8(string: string): string
  • Convert a string with unicode escaped sequence of characters (\u00ed, \u0110, ....) to an utf8 string.

    Parameters

    • string: string

      A string containing unicode escaped characters.

    Returns string

    An utf8 string conversion of the unicode encoded input.

Static utf8ToUnicodeEscapedChars

  • utf8ToUnicodeEscapedChars(string: string): string
  • Convert a utf8 string to a string with unicode escaped sequence of characters (\u00ed, \u0110, ...).

    Parameters

    • string: string

      A string containing an utf8 valid sequence.

    Returns string

    A string containing escaped sequences for all the original utf8 characters

Generated using TypeDoc