Exemplo n.º 1
0
func main() {
	fmt.Println(locale.GetCharmap())
}
Exemplo n.º 2
0
Arquivo: table.go Projeto: pgpst/pgpst
// 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()
	}
}