mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-16 07:23:43 +02:00
[1611376]writer now escapes special characters. When no special chars are present, old behavior is retained. New method might have a performance penalty b/c of operator new inside std::string. (This would not exist if the whole thing operated on ostream instead, I think.)
This commit is contained in:
@@ -560,6 +560,7 @@ Reader::decodeString( Token &token, std::string &decoded )
|
||||
if ( !decodeUnicodeEscapeSequence( token, current, end, unicode ) )
|
||||
return false;
|
||||
// @todo encode unicode as utf8.
|
||||
// @todo remember to alter the writer too.
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user