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

Encoding #251

Closed
im95able opened this issue May 25, 2016 · 4 comments
Closed

Encoding #251

im95able opened this issue May 25, 2016 · 4 comments
Labels
kind: question state: help needed the issue needs help to proceed

Comments

@im95able
Copy link

im95able commented May 25, 2016

Is there any way to get which UTF encoding the JSON document is using ?
Thanks in advance

@nlohmann
Copy link
Owner

To be honest: I am not sure whether the library works with anything other than UTF8. Did you try?

@im95able
Copy link
Author

I didn't. I'm currently using your lib for parsing JSON objects I get from SoundCloud. So far everything workes well. Now I am not sure which encoding they use. My guess probably UTF8

@nlohmann
Copy link
Owner

So I checked and I could parse JSON files encoded as UTF-8 (with and without BOM). Unfortunately, I could not find and UTF16 example. So if anyone can provide such a file, I can add a test case.

@nlohmann nlohmann added the state: help needed the issue needs help to proceed label May 25, 2016
@nlohmann
Copy link
Owner

After some superficial googling, it seems like UTF16 support for C++ is so limited that I shall conclude that I can only make guarantees for UTF8 at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question state: help needed the issue needs help to proceed
Projects
None yet
Development

No branches or pull requests

2 participants