c++ - Whats the difference between printf (%s), printf (%ls . . . #4 likely didn't print because your program crashed on #3 %ls is the most portable way to print a wchar_t string and works from both printf and wprintf You should avoid all use of %S because the Visual C++ interpretation of it is the exact opposite of the C99 C++11 standard