pub fn charset() -> (bool, Option<GString>)
Obtain the character set for the current locale.
This returns whether the locale’s encoding is UTF-8, and the current charset if available.