最前面加上命令:
#pragma execution_character_set("utf-8")
auto item = MenuItemFont::create("你好");auto item2 = MenuItemFont::create("谢谢");auto menu = Menu::create(item, item2, NULL);menu->alignItemsVertically();this->addChild(menu, 1);
这样就能够成功的显示中文而不乱码了.