How do I use accented characters in the window title in SDL2?
问题 SDL_Window* window = SDL_CreateWindow( "Capítulo 1", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_SHOWN ); The displayed title is Cap?tulo 1 回答1: I run into the same problem in Windows with Japanese letters. Using UTF-8 string literals works for me: SDL_Window* window = SDL_CreateWindow( u8"Capítulo 1", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_SHOWN ); 来源: https://stackoverflow.com/questions/53741550/how-do-i-use-accented-characters-in-the