diff options
author | constantined <nobody@constantined.com> | 2013-07-23 04:51:29 +0300 |
---|---|---|
committer | constantined <nobody@constantined.com> | 2013-07-23 04:51:29 +0300 |
commit | 2ecb7555a9df1e843fd25f588819e4ca1d94b266 (patch) | |
tree | 6f6db5baacd8cb224861f5a0104046b8c9f8eb99 /src/qt/rpcconsole.cpp | |
parent | 2227389fa8fa1b9ff19234838fc7b641e935125b (diff) |
Switch to using raw_utf8
Diffstat (limited to 'src/qt/rpcconsole.cpp')
-rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 7f90f4a551..911cef41b5 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -157,7 +157,7 @@ void RPCExecutor::request(const QString &command) else if (result.type() == json_spirit::str_type) strPrint = result.get_str(); else - strPrint = write_string(result, true); + strPrint = write_string(result, json_spirit::pretty_print | json_spirit::raw_utf8); emit reply(RPCConsole::CMD_REPLY, QString::fromStdString(strPrint)); } @@ -171,7 +171,7 @@ void RPCExecutor::request(const QString &command) } catch(std::runtime_error &) // raised when converting to invalid type, i.e. missing code or message { // Show raw JSON object - emit reply(RPCConsole::CMD_ERROR, QString::fromStdString(write_string(json_spirit::Value(objError), false))); + emit reply(RPCConsole::CMD_ERROR, QString::fromStdString(write_string(json_spirit::Value(objError), json_spirit::raw_utf8))); } } catch (std::exception& e) |