This is different from new TextDecoder('iso-8859-1') and new TextDecoder('latin1'), as those
alias to new TextDecoder('windows-1252').
Prefer using isomorphicDecode() from @exodus/bytes/encoding.js or @exodus/bytes/encoding-lite.js,
which is identical to this but allows more input types.
Parameters
arr: Uint8Array
The bytes to decode
Returns string
The decoded string
Deprecated
Use import { isomorphicDecode } from '@exodus/bytes/encoding-lite.js'
Decode
iso-8859-1bytes to a string.There is no loose variant for this encoding, all bytes can be decoded.
Same as:
This is different from
new TextDecoder('iso-8859-1')andnew TextDecoder('latin1'), as those alias tonew TextDecoder('windows-1252').Prefer using
isomorphicDecode()from@exodus/bytes/encoding.jsor@exodus/bytes/encoding-lite.js, which is identical to this but allows more input types.