Function convertEncoding

  • Converts the encoding of a string.

    Parameters

    • str: string

      The string to convert.

    • options: {
          from?: Encoding;
          to?: Encoding;
      }
      • Optional from?: Encoding
      • Optional to?: Encoding

    Returns string

    The string with the new encoding.

Generated using TypeDoc