go通过第三方库 mahonia gbk 转utf8

go get github.com/axgle/mahonia
 

dec := mahonia.NewDecoder("GBK")
ret:=dec.ConvertString(resp)
fmt.Println("GBK to UTF-8: ", String)
posted @ 2018-06-28 22:54  羽鱼  阅读(637)  评论(0编辑  收藏  举报