I am trying to print out the answer I get from a curl query (UTF-8 charset), after performing the query I make a string with the following code:
size_t writeToString(char* ptr, size_t size, size_t nmemb, std::string* stringPtr) {
stringPtr->append(ptr, nmemb*size);
return size*nmemb;
}
When doing a cout
of the string, the Unicode characters are displayed as their code (e.g. \u0434). I've tried changing the code page of the command prompt to 65001. Is it possible to print out the UTF-8 curl response in the Windows command prompt?