```
//ase解码微信公开数据
func DecryptWXOpenData(sessionKey, encryptData, iv string) (*ResEncryptData, error) {
.........
dataBytes, err := AesDecrypt(decodeBytes, sessionKeyBytes, ivBytes)
fmt.Println(string(dataBytes))
m := make(map[string]interface{})
err = json.Unmarshal(dataBytes, &m)
if err != nil {
fmt.Println(err)
return nil, err
}
.........
}
```
#### 打印结果
```
#此处为实际打印数据,并非该网站乱码
���E͗@�E���'XP hc-M�� ��� M���ؘ�:_ ���e]��?���rb�u�#�m ��U��р���FҧFnp�+�_�+�P;Js%ٴ[���&yCA���
```
```
#此处为错误中的打印数据
<nil> invalid character '\u0094' looking for beginning of value
```
#### 求各位指点,我想解码*dataBytes*变量,目前使用的*json.Unmarshal*报错
有疑问加站长微信联系(非本文作者)