```
//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*报错
https://github.com/lppgo/my_test/blob/master/008_%E5%BE%AE%E4%BF%A1%E7%99%BB%E5%BD%95%E6%95%B0%E6%8D%AE%E8%A7%A3%E7%A0%81/main.go
这是写的解码的笔记,有点乱。你看一下吧
#1