package lablgtk3
Module Glib.ConvertSource
Character Set Conversion @gtkdoc glib glib-Character-Set-Conversion
Source
type error = | NO_CONVERSION(*Conversion between the requested character sets is 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
*)
Source
val convert_with_fallback :
?fallback:string ->
to_codeset:string ->
from_codeset:string ->
string ->
stringAll internal strings are encoded in utf8: you should use the following conversion functions
Converts the input string from UTF-8 to the encoding of the current locale. If the locale's encoding is UTF-8, the string is simply validated and returned unmodified.
Obtains the character set for the current locale.