diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-06-10 15:19:51 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-06-10 15:19:51 +0200 |
commit | 63151521fd06ccddd6d5c4e3f283f26d5b9b024d (patch) | |
tree | da3abd8cf9732e2272a99ffd9c8bb395c07c73ee /src/univalue/lib/univalue_write.cpp | |
parent | 1445835bd3c41ce17092dd9439f262fa29606d7c (diff) | |
parent | 60ab9b200654ef0914459711cf2b22be16be3dc2 (diff) |
Merge commit '60ab9b200654ef0914459711cf2b22be16be3dc2'
Diffstat (limited to 'src/univalue/lib/univalue_write.cpp')
-rw-r--r-- | src/univalue/lib/univalue_write.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/univalue/lib/univalue_write.cpp b/src/univalue/lib/univalue_write.cpp index ceb4cc9166..cfbdad3284 100644 --- a/src/univalue/lib/univalue_write.cpp +++ b/src/univalue/lib/univalue_write.cpp @@ -8,8 +8,6 @@ #include "univalue.h" #include "univalue_escapes.h" -// TODO: Using UTF8 - using namespace std; static string json_escape(const string& inS) @@ -23,15 +21,8 @@ static string json_escape(const string& inS) if (escStr) outS += escStr; - - else if (ch < 0x80) + else outS += ch; - - else { // TODO handle UTF-8 properly - char tmpesc[16]; - sprintf(tmpesc, "\\u%04x", ch); - outS += tmpesc; - } } return outS; |