-
I am trying to do this - converting from wstring works incorrectly! But all I try - didnt work! This is screenshot!
So, the wstring L"test" after adding to jon object becomes "Р\xfҐP\a" What the hell, man? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
This library does not support |
Beta Was this translation helpful? Give feedback.
-
Edit:
How about deserializing a json string directly to a struct with std::wstring members? This is a feature request. We store std::wstring in structs to do case-insensitive comparision/search. UTF8 string members are not good here. struct XXX { Yes, we can define a corresponding struct and manually convert UTF8 to std::wstring, but if there are so many structs, it's very inconvenient. struct UTF8XXX { UTF8XXX src = deserialize(json_string); XXX dst; or, we can use std::utf16string? |
Beta Was this translation helpful? Give feedback.
-
@lipasite try https://github.com/sergeniously/az-json which supports std::wstring |
Beta Was this translation helpful? Give feedback.
This library does not support
std::wstring
, but onlystd::string
with UTF-8 encoding.