Glib.ConvertSourceCharacter Set Conversion
type error = | NO_CONVERSIONConversion between character sets not supported
*)| ILLEGAL_SEQUENCEInvalid byte sequence in conversion input
*)| FAILEDConversion failed for some reason
*)| PARTIAL_INPUTPartial character sequence at end of input
*)| BAD_URIURI is invalid
*)| NOT_ABSOLUTE_PATHPathname is not an absolute path
*)convert str ~to_codeset ~from_codeset converts str from from_codeset to to_codeset.
locale_to_utf8 str converts str from the current locale's encoding to UTF-8. If the locale is already UTF-8, validates and returns the string unmodified.
locale_from_utf8 str converts str from UTF-8 to the current locale's encoding. If the locale is already UTF-8, validates and returns the string unmodified.
filename_to_utf8 filename converts a filename from the filesystem encoding to UTF-8.
filename_from_utf8 filename converts a filename from UTF-8 to the filesystem encoding.
get_charset () returns (is_utf8, charset) where is_utf8 is true if the current locale uses UTF-8 encoding, and charset is the name of the character set.