Display wchar_t using ncurses
问题 i'm currently working on a C++ project in which I need to display some extended characters (wchar_t). The main problem is that, even if it works fine in C (using wprintf ), it doesn't work in c++ using mvwaddwstr or waddwstr . Of course, i've set the locale like that: setlocale(LC_ALL, ""); , and nothing is displayed. Does someone got this problem before, or has an idea about that? Thanks. Here is the code: struct charMap { int x; int y; wchar_t value }; int i, x, y; wchar_t str[2]; struct