以下代码:
auto nullValue = json::value::null();
std::string searchText = conversions::to_utf8string("michael");
make_request(client, methods::GET, nullValue, searchText);返回json数据:
{"data":[
{
"_id":172,"name":"Michael Edano","profile_picture":null
}],
"success":true
}但如果我把日本绳子:
auto nullValue = json::value::null();
std::string searchText = conversions::to_utf8string("北島 美奈");
make_request(client, methods::GET, nullValue, searchText);产出如下:
provided uri is invalid: /api/authenticate/searchStaffs/?? ??但预期产出是:
{"data":[{"_id":12,"name":"北島 美奈","profile_picture":null}],"success":true}这是什么原因?
发布于 2021-03-22 07:49:44
你要做的就是
auto nullValue = json::value::null();
std::wstring searchText =L"北島 美奈";
make_request(client, methods::GET, nullValue, searchText);希望它能帮上忙
https://stackoverflow.com/questions/50406621
复制相似问题