0
我试图在我的sdl项目中设置UTF8屏幕窗口标题的所有我看到的是????
,我不知道如何处理它。这里是我的示例代码:sdl屏幕UTF8屏幕窗口标题
#include "SDL/SDL.h"
int main(int argc, char* args[])
{
int screen_width = 800;
int screen_hight = 600;
int screen_bpp = 32;
SDL_Surface *screen = NULL;
SDL_Init(SDL_INIT_EVERYTHING);
screen = SDL_SetVideoMode(screen_width, screen_hight, screen_bpp, SDL_SWSURFACE );
// Set the window caption
SDL_WM_SetCaption("تستی", NULL); //utf8 not working
SDL_Delay(5000);
SDL_Flip(screen);
}