encoding-0.8.5: A library for various character encodings

Safe HaskellNone
LanguageHaskell2010

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

Defined in Data.Encoding.UTF8

Methods

(==) :: UTF8 -> UTF8 -> Bool #

(/=) :: UTF8 -> UTF8 -> Bool #

Show UTF8 Source # 
Instance details

Defined in Data.Encoding.UTF8

Methods

showsPrec :: Int -> UTF8 -> ShowS #

show :: UTF8 -> String #

showList :: [UTF8] -> ShowS #

Encoding UTF8 Source # 
Instance details

Defined in Data.Encoding.UTF8