• Converts a hexadecimal string into its equivalent UTF-8 string.

    This function takes a hexadecimal string as input, converts each pair of hexadecimal digits into the corresponding UTF-8 character, and concatenates the results to form the final string.

    Parameters

    • value: string = ""

      The hexadecimal string to be decoded. If not provided, an empty string will be used.

    Returns string

    The UTF-8 representation of the input hexadecimal string.

    Example

    // Decode a hexadecimal string into UTF-8
    const utf8String = ix.api.text.hexDecode("666F6F426172");
    console.log(utf8String); // Outputs: "fooBar"