-
Notifications
You must be signed in to change notification settings - Fork 127
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
解析Json时,是否添加对UTF8-Bom文件的支持 #40
Comments
现在就支持bom |
在windows下解析UTF8带BOM的文件时就会报下面错误,就是没有支持BOM文件,去掉BOM的头就可以解析正确了 |
这个和bom没关系,应该是编码导致的,现在不支持gbk编码 |
贴一下json |
{ |
解析用的 |
我明天看看 |
像最开始那样在解析文件函数里面添加删除BOM头就可以成功解析,最开始里面有代码。好的,谢谢! |
试了一下,Ubuntu(gcc)/Windows(msvc 2019)都是正常的,rapidjson处理了BOM了:https://github.com/xyz347/xpack/blob/master/rapidjson/encodedstream.h#L72 |
用最新的xpack的代码 |
最新版本是可以的, |
是否能添加对UTF8-Bom文件的支持 xpack\json_decoder.h
The text was updated successfully, but these errors were encountered: