-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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/Unicode error #982
Comments
Hello, |
Thanks for your reply But I try
It can cout By the way I compile with visual studio 2015 and 2017,using version 3.1.1. |
Could you try to output But I think this could be a MSVC issue - I am not using it myself, but I heard a lot of issues in the past where the encoding was not set to Unicode, so there were issues parsing, storing or displaying UTF-8. I tried the code above on macOS, and it works without problems. We also have extensive UTF-8 tests running on MSVC 2015 and MSVC 2017, so this all should work... |
Thanks for your reply. Yes |
I do not know. But the value seems to have been successfully stored, so this is just an output issue. Maybe https://stackoverflow.com/questions/32330970/c11-stdcout-string-literal-in-utf-8-to-windows-cmd-console-visual-stu may help. In any case, I think StackOverflow may help you more, because this seems not to be a library issue. |
Thank you very much! |
I have some problems with parsing UTF-8
Here is my code
I think I should get output like :
but I only get:
If I do
auto temp = j1["name"].get<std::string>();
temp will have Invalid character in string.Are there anyone could help me to fix it?
The text was updated successfully, but these errors were encountered: