Function hextoutf8

  • convert hexadecimal string to UTF-8 string

    Parameters

    • h: string

      hexadecimal string

    Returns string

    UTF-8 string

    Throws

    Error if hexadecimal can't decoded as UTF-8 string

    Example

    hextoutf8("616263") -> "abc"
    hextoutf8("616161e38182e38184e38186") -> "aaaあいう"
    hextoutf8("6161ff") -> throws malformed error