开发者

while adding string(object) to the array giving unformatted string printing in nslog

开发者 https://www.devze.com 2023-02-20 00:24 出处:网络
I am trying to read Ò ÉÑÎÔÜÊ characters from XML and want to store it in an array. While reading strings from XML it is working showing fine and they are the same as the XML characters.

I am trying to read Ò ÉÑÎÔÜ Ê characters from XML and want to store it in an array. While reading strings from XML it is working showing fine and they are the same as the XML characters.

Now I inserted them into a mutable array. Wh开发者_运维问答en I am trying to print that array, it gives strange values: instead of ÒÙ ÉÑÎÔÜ Ê it shows "\U00dc","\U00ca\U00db\U00ce\U00cd", "\U00d7",(the array values).

Can anyone gives me some suggestion why it is happening?

I am using [textWord addObject:currentElement]; to insert objects to the array. Here currentElement is an NSMutableString.


these are the unicode character for you special character, whats the problem with that.

0

精彩评论

暂无评论...
验证码 换一张
取 消