func main() { fmt.Println(locale.GetCharmap()) }
// EnableUTF8PerLocale will use current locale character map information to // determine if UTF-8 is expected and, if so, is equivalent to EnableUTF8. func EnableUTF8PerLocale() { charmap := locale.GetCharmap() if strings.EqualFold(charmap, "UTF-8") { EnableUTF8() } }