I have a simple example to show the problem:
const wchar_t str[] = L"Hello-日本語-سلام-Ä-भारतीय-ไทย-";
OutputDebugStringW(str);
The result was as follow:
But when use MessageBox(NULL, str, L"", MB_OK);
:
Why in the first case all languages did not appear correctly while in the second case all languages appear correctly?