Module Bytesrw_utf.Encoding

Encoding specification.

type t = [
  1. | `Utf_8
    (*

    UTF-8

    *)
  2. | `Utf_16be
    (*

    UTF-16BE

    *)
  3. | `Utf_16le
    (*

    UTF-16LE

    *)
]

The type for UTF encodings.

val to_iana_charset : [< t | `Utf_16 ] -> string

to_iana_charaset e is e as its IANA character set name.

val pp : Stdlib.Format.formatter -> [< t | `Utf_16 ] -> unit

pp formats encodings with to_iana_charset.