I've tried this:
- Code: Select all
std::ostream& ostr = response.send();
ostr << L"<html><head><title>POCO HTTPServer Test</title></head>";
ostr << L"<body><p style=\"text-align: center; font-size: 48px;\">";
ostr << L"Hello in UTF16";
ostr << L"</p></body></html>";
I'm running on Windows XP which I know encodes strings as UCS2/UTF-16, so I've set the encoding of my browser to UTF-16. The output I get in IE and Firefox is:
I've also tried using an OutputStreamConverter without success.
I eventually would like to output UTF-8, but I thought since I'm running Windows, UTF-16 would be a logical next step.
Thanks for any help,