I am trying to print wstring / wchar_t in xcode on the console, but unfortunately it only works with basic characters (I think ascii), everything else is displayed in numbers, like the following:
std::cout << "äöüu"<< std::endl; std::wcout << L"äöüu" << std::endl;
while the cout version prints "äöüu", as expected, I get the following when using wchar_t:
\ 344 \ 366 \ 374u
any ideas on how to fix this? I am using xcode 3.2.2 64 bit and gcc 4.2 with file encoding set to Unicode (UTF-8)
Thanks!
c ++ string xcode character-encoding
moka
source share