2

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

magorich
  • 449
  • 5
  • 17

1 Answers1

1

change your cpp file encoding to UTF in visual studio

m.ding
  • 3,172
  • 19
  • 27