Im having a problem with the line jump when i read from a .plist file.
So if i create a label directly with the text like next, the works.
CCLabelTTF* pLabel = CCLabelTTF::create("Hi\nThis works", "tahoma.ttf", 36 , CCSizeMake(visibleSize.width-50, 0),kCCTextAlignmentLeft);
Howeber, if i read exactly same string from a .plist file and i create the label with this one then the “” appears on the label instead of replacing them with line jumps.
CCDictionary* dict = CCDictionary::createWithContentsOfFile("preguntas.plist");
CCString question = ((CCString)*dict->valueForKey("1"));
CCLabelTTF* pLabel = CCLabelTTF::create(question.getCString(), "tahoma.ttf", 36 , CCSizeMake(visibleSize.width-50, 0),kCCTextAlignmentLeft);
The content of the .plist file is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
It seems some kind of format conversion between CCstrings, strings and characters, but i havn’t figured how to solve it. ¿Anyone knows whats happening here?
Thanks for your help.