Hi, thank you for reporting. I fixed it. The problem was a little to simple handling of the byte order mark in utf8 codec.
Tommi Am 02.12.2015 um 00:12 schrieb Jouven: > Greetings, > > Same issue as last time, the deserializer hangs. > Current cxxtools from github. > The symbol is this one: http://graphemica.com/%EF%B8%B0 > Test code: > > #include <cxxtools/utf8codec.h> > > #include <string> > #include <iostream> > #include <sstream> > > struct obj > { > std::string value; > friend void operator>>=(const cxxtools::SerializationInfo& si, > obj& varObj) > { > cxxtools::String tmpUtf8; > si.getMember("value", tmpUtf8); > varObj.value = cxxtools::Utf8Codec::encode(tmpUtf8); > } > }; > > int main() > { > obj testObj; > std::string test(R"({"value":"︰"})");//HERE > std::istringstream tmpout2(test); > tmpout2 >> cxxtools::Json(testObj); > std::cout << testObj.value << std::endl; > } > > > Regards, > Joan > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > _______________________________________________ > Tntnet-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tntnet-general ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
