Skip to content
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

查询结果显示乱码 #4

Open
leonlianght opened this issue Jul 19, 2021 · 0 comments
Open

查询结果显示乱码 #4

leonlianght opened this issue Jul 19, 2021 · 0 comments

Comments

@leonlianght
Copy link
Contributor

查询数据是通过 @xuperchain/xuper-sdk 调用 invokeSolidityContarct 方法调用查询,返回的结果为:

[
  {
    status: 200,
    body: 'W3sibmFtZSI6ImFrYSJ9LHsidGltZSI6IjE2MjY3MTQ4MDEifSx7InVuaXF1ZU1hcmsiOiJcdWZmZmRcdWZmZmRcdTAwMTNtXHUwMDAzO1x1ZmZmZCdcdWZmZmRcXFx1ZmZmZFx1MDAxOFx1ZmZmZGxcdWZmZmQhZm1cdWZmZmRcdTAwMDVcdWZmZmTdrFZcdWZmZmRcdWZmZmRcdWZmZmRcdTAwMGNcdTAwMWUkXHVmZmZkXHVmZmZkIn1d'
  }
]

其中 body 内为 base64 编码的数据,通过 base64 decode (UTF8编码)得到的数据为:

[{"name":"aka"},{"time":"1626714801"},{"uniqueMark":"\ufffd\ufffd\u0013m\u0003;\ufffd'\ufffd\\\ufffd\u0018\ufffdl\ufffd!fm\ufffd\u0005\ufffdݬV\ufffd\ufffd\ufffd\u000c\u001e$\ufffd\ufffd"}]

uniqueMark 确实为乱码数据

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant