encoding-0.8.4: A library for various character encodings

Safe HaskellNone
LanguageHaskell2010

Data.Encoding.UTF16

Description

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

Documentation

data UTF16 Source #

Constructors

UTF16

Decodes big and little endian, encodes big endian.

UTF16BE

Big endian decoding and encoding, fails if the string isn't actually big endian.

UTF16LE

Little endian decoding and encoding.