Inherits Codec
The Utf16Codec implements UTF-16 as specified in RFC 2781.
For decoding, Utf16Codec autodetects UTF-16BE or -LE based on the BOM, and for encoding it uses UTF-16BE with a BOM until/unless decoding autodetects UTF-16LE or UTF-16BE without a BOM. In practice it always uses UTF-16BE with a BOM.
Constructs a simple UTF-16 encoder/decoder. For decoding, the backend is autoselected.
Reimplements Garbage::Garbage().
This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.