encoding-0.10.2: A library for various character encodings

Safe Haskell | None
Language | Haskell2010

Data.Encoding.UTF8

Description

This module implements UTF-8 encoding and decoding as in RFC 3629. See http://en.wikipedia.org/wiki/UTF-8 for more information.

# Documentation

data UTF8 Source #

Constructors

UTF8 | Very forgiving decoding mechanism, accepts everything that it can make any sense of.
UTF8Strict | More strict decoding, doesn't accept sequences that have a too long representation and checks bits that aren't used in the decoding

#### Instances

Instances details

Encoding UTF8 Source # |
Instance details Defined in Data.Encoding.UTF8 Methods decodeChar :: ByteSource m => UTF8 -> m Char Source # encodeChar :: ByteSink m => UTF8 -> Char -> m () Source # decode :: ByteSource m => UTF8 -> m String Source # encode :: ByteSink m => UTF8 -> String -> m () Source # encodeable :: UTF8 -> Char -> Bool Source #
Show UTF8 Source # |
Instance details Defined in Data.Encoding.UTF8 Methods showsPrec :: Int -> UTF8 -> ShowS Source # show :: UTF8 -> String Source # showList :: [UTF8] -> ShowS Source #
Eq UTF8 Source # |
Instance details Defined in Data.Encoding.UTF8 Methods (==) :: UTF8 -> UTF8 -> Bool Source # (/=) :: UTF8 -> UTF8 -> Bool Source #