Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 years ago
parent
commit
e6a39784ee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      service/fj_service.go

+ 2 - 1
service/fj_service.go View File

140
 		return err.Error(), ""
140
 		return err.Error(), ""
141
 	}
141
 	}
142
 
142
 
143
-	output, err_msg := GetFjBusinessHandleInfo([]byte(ConvertByte2String(bytesData, GB18030)))
143
+	enc := mahonia.NewEncoder("gbk")
144
+	output, err_msg := GetFjBusinessHandleInfo([]byte(enc.ConvertString(string(bytesData))))
144
 	fmt.Println("输出信息:")
145
 	fmt.Println("输出信息:")
145
 	fmt.Println(output)
146
 	fmt.Println(output)
146
 	fmt.Println("错误信息:")
147
 	fmt.Println("错误信息:")