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