I establish a connection via wxHTTP to my server.
The program shall download some text...
My PHP-Code and Server-Output is configured to UTF-8 and the text is displayed correct in all browsers.
The text includes some letters like Ä,Ö,Ü,ä,ö,ü,ß,é... wich are displayed correct in my browser as I alredy said.
But if I display this text in my program with wxMessageBox() for example, I get those special letters displayed wrong.
Do you have any Idea how to fix this bug?
Thank you very much!
- eriX
Code: Select all
wxHTTP get;
get.SetHeader(_T("Content-type"), _T("text/html; charset=utf-8"));
get.SetTimeout(10);
for(int i=0; i<10; i++)
{
if(!get.Connect(wxT("www.mydomain.de")))
{
wxSleep(2);
}
}
wxApp::IsMainLoopRunning();
wxInputStream *httpStream = get.GetInputStream(_T("/a-dir/index.php?id="+foo));
if (get.GetError() == wxPROTO_NOERR)
{
// CODE
}