@exodus/bytes
    Preparing search index...

    Function utf8toStringLoose

    • Decode UTF-8 bytes to a string (loose mode)

      Replaces invalid UTF-8 byte sequences with replacement codepoints U+FFFD per WHATWG Encoding specification.

      Such replacement is a non-injective function, is irreversable and causes collisions.
      Prefer using strict throwing methods for cryptography applications.

      Parameters

      • arr: Uint8Array

        The bytes to decode

      Returns string

      The decoded string