package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.common/Glib/Convert/index.html
Module Glib.ConvertSource
Character Set Conversion
type error = | NO_CONVERSION(*Conversion between character sets not supported
*)| ILLEGAL_SEQUENCE(*Invalid byte sequence in conversion input
*)| FAILED(*Conversion failed for some reason
*)| PARTIAL_INPUT(*Partial character sequence at end of input
*)| BAD_URI(*URI is invalid
*)| NOT_ABSOLUTE_PATH(*Pathname 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.