Originally Posted by
Codeplug
>> but beware - even though it expects UTF16LE, it actually expects a fixed-length string, so any character that takes more than two bytes to store won't work!
I don't believe that is true. Windows supports UTF16 in all it's glory.
Perhaps my information is outdated. I was under the impression that it did not support it.
A quick test shows that it does work on W10, though.
Code:
#include <Windows.h>
int main()
{
std::wstring w = L"��"; // Yes, this takes two UTF16 words (Looks like the board can't handle the character; get one from here).
MessageBoxW(nullptr, w.c_str(), L"", 0);
}
So yeah, sorry about that. It seems that my information may not be reliable.