|
@@ -146,7 +146,9 @@ func trim(s string) string {
|
|
|
|
|
|
func transCharset(s string) string {
|
|
|
s = trim(s)
|
|
|
+ return s
|
|
|
rd := transform.NewReader(bytes.NewReader([]byte(s)), simplifiedchinese.GBK.NewDecoder())
|
|
|
- bytes, _ := io.ReadAll(rd)
|
|
|
+ bytes, err := io.ReadAll(rd)
|
|
|
+ fmt.Printf("bytes=%s err=%v\n", bytes, err)
|
|
|
return string(bytes)
|
|
|
}
|