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

utf-8空格C2A0 #34

Open
ichengzi opened this issue Jan 26, 2021 · 0 comments
Open

utf-8空格C2A0 #34

ichengzi opened this issue Jan 26, 2021 · 0 comments

Comments

@ichengzi
Copy link
Owner

https://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=dec
image

{
    "fromCity":"上海"
}

charles抓包导出的json串里出现了特殊空格,导致无法格式化, 无法解析。 subLime text里没法处理。
hex查看, 前有4个 c2a0
image

简单方法, 粘贴到 vscode, change language mode -> json, then format, 空格转换成了ascii空格, 0x20, 可以正常格式化使用了

{
    "fromCity":"上海"
}

image

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