diff options
Diffstat (limited to 'base/json_writer.cc')
-rw-r--r-- | base/json_writer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/json_writer.cc b/base/json_writer.cc index 0da2925..20c533b 100644 --- a/base/json_writer.cc +++ b/base/json_writer.cc @@ -156,7 +156,8 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) { } void JSONWriter::AppendQuotedString(const std::wstring& str) { - string_escape::JavascriptDoubleQuote(str, true, json_string_); + string_escape::JavascriptDoubleQuote(WideToUTF16Hack(str), true, + json_string_); } void JSONWriter::IndentLine(int depth) { @@ -164,4 +165,3 @@ void JSONWriter::IndentLine(int depth) { // reallocating. json_string_->append(std::string(depth * 3, ' ')); } - |