Hi Juce,
I have used URL to get some UTF8 Chinese strings successfully from server, tested by CharPointer_UTF8::isValidString function. I used these codes to get the server returned String:
url.readEntireBinaryStream(block,isOK)
String resultStr = String::fromUTF8((char*)block.getData(),byte);
const wchar_t* wcharptr = test.toWideCharPointer();
When debugging in VS, there’re mess Chinese characters in resultStr value, but wcharptr display the right Chinese characters. How can I generate the right juce::String to display in my APP GUI?
Thanks