decodeUtf8With

Decode a ByteString containing UTF-8 encoded text. Surrogate code points in replacement character returned by OnDecodeError will be automatically remapped to the replacement char U+FFFD.
Decode a ByteString containing UTF-8 encoded text.
Decode an InputStream of ByteStrings in UTF-8 format into an InputStream of Text values. If decoding fails, invokes the given OnDecodeError function to decide what to do. See Data.Text.Encoding.decodeUtf8With.
Decode a ByteString containing UTF-8 encoded text. NOTE: The replacement character returned by OnDecodeError MUST be within the BMP plane; surrogate code points will automatically be remapped to the replacement char U+FFFD (since 0.11.3.0), whereas code points beyond the BMP will throw an error (since 1.2.3.1); For earlier versions of text using those unsupported code points would result in undefined behavior.
Helper for decodeUtf8With.
Helper for decodeUtf8With, streamDecodeUtf8With, and lazy decodeUtf8With, which use an OnDecodeError to process bad bytes. See decodeUtf8Chunk for a more flexible alternative.
Decode, in a stream oriented way, a lazy ByteString containing UTF-8 encoded text.