How to get string from plist with special character.


#1

Hello,

I failed to get string with special character from plist in android, this is successfully return string in iOS but in android it return only previous string of special character.
for eg:" Hello i’m here " , android gets “Hello i” string only but in iOS i get full string “Hello i’m here”.
Plz help me.

Thanks


#2

How did you get the string from plist?


#3

I get plist by using these lines.

CCDictionary<std::string, CCObject*> plistDictionary;
std::string m_sPlistFile = CCFileUtils::fullPathFromRelativePath;
plistDictionary = CCFileUtils::dictionaryWithContentsOfFile);
and get message by : - CCString
testitems = (CCString*)plistDictionary->objectForKey(errorString);

I am using cocos2d-1.0.1-x-0.13.0-beta.

Thanks