diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_search.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_search.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_search.cpp b/protocols/SkypeWeb/src/skype_search.cpp index 9db84a6ca2..10d2ccbc88 100644 --- a/protocols/SkypeWeb/src/skype_search.cpp +++ b/protocols/SkypeWeb/src/skype_search.cpp @@ -29,9 +29,8 @@ void CSkypeProto::SearchBasicThread(void* id) if (!IsOnline())
return;
ptrA token(getStringA("TokenSecret"));
- //need to convert search string
- char *string = mir_t2a((TCHAR*)id);
- PushRequest(new GetSearchRequest(token, (char*)string), &CSkypeProto::OnSearch);
+ ptrA string(mir_urlEncode(ptrA(mir_utf8encodeT((TCHAR*)id))));
+ PushRequest(new GetSearchRequest(token, string), &CSkypeProto::OnSearch);
}
void CSkypeProto::OnSearch(const NETLIBHTTPREQUEST *response)
|