char16_t support #617
Replies: 2 comments
-
We currently only support I had originally thought to extend support for There are a couple of projects that support detecting the encoding of a JSON source, and transparently converting it into UTF-8 if necessary before reading it into dom's and sax style handlers. We could do that. We could also provide alternative encoders that would write it out as UTF-16, if desired. Would that solve your problem? |
Beta Was this translation helpful? Give feedback.
-
Thank you for detailed information. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I try to use char16_t for json with boost::iostreams. I need it for compatibility with Windows.
using JSONImpl = jsoncons::basic_json<char16_t, jsoncons::order_preserving_policy, std::allocator<char>>;
And get a vast number of errors with jsoncons methods.
For example (it's a very small part of full log):
How to use jsoncons with char16_t in Linux?
I have gcc-12.2 with C++17 support.
Beta Was this translation helpful? Give feedback.
All reactions