Answer the question
In order to leave comments, you need to log in
Curl special characters and C?
I just can't send Russian text from C via curl to google translate.
char url[4096];
strcpy(url, "http://translate.google.com/translate_tts?tl=ru&q=");
strcat(url, curl_easy_escape(curl_handle, text, strlen(text));
Answer the question
In order to leave comments, you need to log in
Uniform Resource Identifier (URI): Generic Syntax [RFC 3986]:
Those. yes, it's most likely a matter of encoding: text must be encoded in UTF-8 before serving to curl_easy_escape .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question