jimmyyem преди 3 месеца
родител
ревизия
dfb5a94dda
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      internal/logic/contact/import_whatsapp_contact_logic.go

+ 3 - 1
internal/logic/contact/import_whatsapp_contact_logic.go

@@ -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)
 }