-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected character encountered while parsing value: �. Path '', line 0, position 0. #2057
Comments
能把你出现乱码时候的所有相关数据发过来看一下吗?包括原始密文,以及解密需要的所有参数。如果涉及到密钥,可以发送到 zsu@senparc.com。 |
是 **wolf@qq.com 这个邮箱发来的吗? |
@1378955720 可以参考这里:#1869 (comment) |
不好意思,现在才看到,我还没发过邮箱给你,我稍后可以发给你。 |
@1378955720 后来有发过来吗? |
这个问题前端做POST前,参数做urlencode处理就行了! |
这个我在解密profile的时候会有一定概率出现这个问题,前端参数post前也做了encodeURI的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
在微信成功授权,解密手机号的时候偶尔:Unexpected character encountered while parsing value: �. Path '', line 0, position 0.此问题不是每次都会出现,本人在用源码调试的时候,会发现是因为解密后得到的字符串是乱码的。我试着换了几个Encoding还是不行,返回乱码的是在EncryptHelper.DecodeEncryptedData这个方法中。
微信官方文档 URL
微信官方文档快照(直接复制关键内容到下方)
发现问题的模块
模块对应的 .net 版本
开发环境
缓存环境
系统环境
The text was updated successfully, but these errors were encountered: