I’m loading a ttf as a test (http://www.dafont.com/comfortaa.font?fpp=100). Printing the normal letters and numbers of that font is plain and simple and works fine. But then the requirements of the game changed and now I need to print the extended characters too. The way I’m printing the characters is the following:
char buffer[8] = {0};
sprintf(buffer, "%c", 65); // prints the letter A
CCLabelTTF *label = CCLabelTTF::create(buffer, "Comfortaa.ttf", 20)
this->addChild(label);
and when I try to print a special character like À it works
char buffer[8] = {0};
sprintf(buffer, "À"); // prints the letter À
CCLabelTTF *label = CCLabelTTF::create(buffer, "Comfortaa.ttf", 20)
this->addChild(label);
but when I take the ASCII value of À that is 192 it won’t work and I get blank space
char buffer[8] = {0};
sprintf(buffer, "%c", 192); // doesn't print the letter À
CCLabelTTF *label = CCLabelTTF::create(buffer, "Comfortaa.ttf", 20)
this->addChild(label);
Any ideas on how to solve this? the third example is the one that I need to make it work for my game.