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
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
Encoding UTF8 Source # | |
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 # | |
Eq UTF8 Source # | |