@gibme/dns
    Preparing search index...

    Function getUtf8ByteLength

    • Calculates the actual UTF-8 byte length of a string This is critical because JavaScript's .length returns character count, not byte count

      Parameters

      • str: string

        The string to measure

      Returns number

      The number of bytes when encoded as UTF-8