Character encoding detection and handling
val to_string : t -> stringConvert encoding to string representation
val pp : Format.formatter -> t -> unitPretty-print an encoding
val detect : string -> t * intDetect encoding from BOM or first bytes. Returns (encoding, bom_length)