Merge pull request #2740 from constantined/constantined

UTF-8 support for JSON-RPC
This commit is contained in:
Gavin Andresen
2013-10-22 01:20:02 -07:00
18 changed files with 702 additions and 403 deletions

View File

@ -29,7 +29,7 @@ BOOST_AUTO_TEST_CASE(tx_valid)
BOOST_FOREACH(Value& tv, tests)
{
Array test = tv.get_array();
string strTest = write_string(tv, false);
string strTest = write_string(tv, raw_utf8);
if (test[0].type() == array_type)
{
if (test.size() != 3 || test[1].type() != str_type || test[2].type() != bool_type)
@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(tx_invalid)
BOOST_FOREACH(Value& tv, tests)
{
Array test = tv.get_array();
string strTest = write_string(tv, false);
string strTest = write_string(tv, raw_utf8);
if (test[0].type() == array_type)
{
if (test.size() != 3 || test[1].type() != str_type || test[2].type() != bool_type)