In Visual Studio /C++ declared a wstring c and filled it with a surrogate pair ( Unicode 0001F01C = Mahong tile )
std::cout << std::hex << 16;
std::cout << "Hello World!\n";
std::wstring c = L"\U0001F01C";
wchar_t* ctest = &c[0];
std::cout << "Checking value: " << *ctest << ".." << endl;
When I print out the value I would expect to get back this Unicode Number . But instead I get d83c.
Can anyone tell me why I don`t get the Unicode Value?
10Hello World!
Checking value: d83c..