Special Characters in Cocos2D-X CCLabelTTF

1k views Asked by At

Hi I want to create CCLabelTTF with a string that contains special characters here is some example

CCLabelTTF* pLabelDuracion = CCLabelTTF::create("Duración de Periodo", "Arial", 20,CCSize(),kCCTextAlignmentLeft);

or

CCLabelTTF* pLabelPsswd = CCLabelTTF::create("Contraseña", "Arial", 20,CCSize(),kCCTextAlignmentLeft);

Please show me how to display this characters in my app ("ñ","´",etc)

I'm coding in visual studio 2010

1

There are 1 answers

0
m.ding On BEST ANSWER

change your cpp file encoding to UTF in visual studio