Code:
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>
#include <wchar.h>
int main(int argc, char** argv)
{
/* print parameters */
wchar_t wc=0xbbbb;
//setlocale(LC_CTYPE, "en_US.utf8");
//setlocale(LC_CTYPE, "");
setlocale(LC_ALL,"");
wprintf(L"%c\n",wc);
return 0;
}
I run this code in a command prompt, and always get "?" for any value bigger than 7f. Even though the command prompt code page may not match with the default one used by the code (I don't knowfor sure what is it), I expect to see a least some char other than ?. Did I use wrong print func?
thx,