module Convert: sig
.. end
Character Set Conversion
type
error =
| |
NO_CONVERSION |
| |
ILLEGAL_SEQUENCE |
| |
FAILED |
| |
PARTIAL_INPUT |
| |
BAD_URI |
| |
NOT_ABSOLUTE_PATH |
exception Error of error * string
val convert : string -> to_codeset:string -> from_codeset:string -> string
Raises Error
.
val convert_with_fallback : ?fallback:string ->
to_codeset:string -> from_codeset:string -> string -> string
Raises Error
.
All internal strings are encoded in utf8: you should use
the following conversion functions
val locale_from_utf8 : string -> string
Raises Error
.
val locale_to_utf8 : string -> string
Raises Error
.
val filename_from_utf8 : string -> string
Raises Error
.
val filename_to_utf8 : string -> string
Raises Error
.
val get_charset : unit -> bool * string
Raises Error
.