diff --git a/go/sql/encoding.go b/go/sql/encoding.go index ac38f85..767bd9d 100644 --- a/go/sql/encoding.go +++ b/go/sql/encoding.go @@ -8,6 +8,7 @@ package sql import ( "golang.org/x/text/encoding" "golang.org/x/text/encoding/charmap" + "golang.org/x/text/encoding/simplifiedchinese" ) type charsetEncoding map[string]encoding.Encoding @@ -18,4 +19,5 @@ func init() { charsetEncodingMap = make(map[string]encoding.Encoding) // Begin mappings charsetEncodingMap["latin1"] = charmap.Windows1252 + charsetEncodingMap["gbk"] = simplifiedchinese.GBK }