#include #include #include using namespace std; int main() { // Enable wide‑character output setlocale(LC_ALL, ""); // Unicode characters (example: Japanese) wchar_t a {L'\x65E5'}; // 日 wchar_t b {L'\x672C'}; // 本 wchar_t c {L'\x8A9E'}; // 語 wstring word {L"\x65E5\x672C\x8A9E"}; // 日本語 // CGI header wcout << L"Content-type: text/html\n\n"; // HTML output wcout << L"\n" << L"\n" << L"\n" << L"Unicode Demo\n" << L"\n" << L"\n" << L"

Unicode Output Example

\n\n"; wcout << L"

Individual characters:
\n"; wcout << a << L" " << b << L" " << c << L"

\n"; wcout << L"Wide string:
\n"; wcout << word << L"
\n"; wcout << L"

\n" << L"\n" << L"\n"; return EXIT_SUCCESS; }