Hi,

I am retrieving a string from the MySQL database as UTF8.
Now ofcourse i checked if the string itself is ok by writing the retrieved string to a file and opened it in notepad++ under UTF8 format and it reads it correctly.
After using this code:

PHP Code:
res stmt->executeQuery("SELECT * FROM `members` WHERE `member_id` = 50");
while (
res->next())
{
    
WCHAR wText[1000];
    
MultiByteToWideChar(CP_UTF80res->getString("title").c_str(), -1wText1000);
    
WriteToFile("Test.txt"wText);
}
// res->getString("title").c_str() = UTF8 String which im talking about 
I open the file in notepad++ and i see gibberish characters, i tried opening it under every existing encoding formats and all show gibberish.
Am i doing something in the conversion API?
I am trying to convert a UTF8 string to a UNICODE string (That UNICODE string that is supported by wprintf %s).

Any help would be greatly appreciated.
Thank you.