dropbox / json11

A tiny JSON library for C++11.
MIT License
2.55k stars 613 forks source link

UTF8 string input not supported #67

Closed szatmary closed 8 years ago

szatmary commented 8 years ago

json.org specifies a "A string is a sequence of zero or more Unicode characters" I have always taken that to mean utf8. parse_string() does not seem to handle multi byte utf8. I will be happy to do the work and provide a pull request, If its agreed that utf8 support is desirable.

j4cbo commented 8 years ago

Is there a particular bug you're seeing? json11 is intended to handle UTF8 properly throughout, which is usually transparent, but not in a few cases:

szatmary commented 8 years ago

Yeah, I may have jumped the gun there and imprudently blamed json11, Still investigating. but will close this in the mean time.