Function utf8ToHex

Converts a UTF-8 string to its hex string representation.

  • Parameters

    • str: string

      The UTF-8 string to convert.

    Returns string

    The hex string representation of the UTF-8 string.