How can I print (☞゚ヮ゚)☞ with Ncurses?
问题 I would like to print (☞゚ヮ゚)☞ with the Ncurses library using C++ in Ubuntu. First of all, you can do this by simply having: std::cout << "(☞゚ヮ゚)☞" << std::endl; And it works just fine. However, when printing using Ncurses, I think that you need to use printw(char[]) . In which case, I try something like this: std::string str = "(☞゚ヮ゚)☞"; // String initscr(); // Start curses mode printw(str.c_str()); // Print getch(); // Wait for input endwin(); // Exit curses mode But it outputs: (�~X~^��~ �