-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
dump() convert strings encoded by utf-8 to shift-jis on windows 10. #147
Comments
What do you mean? What output do you expect? |
sorry, the type of "data" element is not "array" but "string". As the source of json.hpp, dump() seems to call the method at line 4716.
■dump() in json.hpp at line 4716
|
There are quotes around the array. Therefore, it is treated as string. |
After all, I misunderstood. The reason why it seems to be converted is that a return value which "char* " points seems to lose when a function exit. Thanks all. |
when I dump() a json object as follows, the dumped string is converted from "utf-8" to "shift-jis".
How can I do to keep up its encode "utf-8"?
The text was updated successfully, but these errors were encountered: