Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

amit-battan

macrumors newbie
Original poster
Sep 10, 2009
16
0
Hi All

'Calle Mare de Déu de' this comes from database , and I am using xml parser to covert it into Array but when control comes to respective node then exception occur NSPlaceholderString initwithstring:] nil argument on snow leapord and on leapord exception occur but alert does not come.

when I replace 'Calle Mare de Déu de' with 'Calle Mare de Deu de' then it works ok.

Is It only due to 'é', means I want to know if NSString does not supported 'é' or any other characters

Thanks
Amit Battan
 
Hi All

'Calle Mare de Déu de' this comes from database , and I am using xml parser to covert it into Array but when control comes to respective node then exception occur NSPlaceholderString initwithstring:] nil argument on snow leapord and on leapord exception occur but alert does not come.

when I replace 'Calle Mare de Déu de' with 'Calle Mare de Deu de' then it works ok.

Is It only due to 'é', means I want to know if NSString does not supported 'é' or any other characters

Thanks
Amit Battan

What encoding are you using? Try using something like NSUTF16StringEncoding. If it is UTF8 then the maximum possible amount of unique characters is 2^8 = 256. So with UTF16 then 65,536 characters are allowed and probably the "é" as well.
 
Yeah I was wrong about using UTF-8, which is variable from 1 to 4 octets (usually 8 bits).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.