示例#1
0
文件: wrapper.go 项目: pgpst/pgpst
func main() {
	fmt.Println(locale.GetCharmap())
}
示例#2
0
文件: table.go 项目: 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()
	}
}