[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:
Christopher Dunn
2007-03-23 05:56:39 +00:00
parent fe536c0631
commit ce1f32981b
2 changed files with 40 additions and 1 deletions

View File

@@ -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: