Search code examples
iphonecharacter-encodingnsstringnslog

iphone compare   with NSString


i was comparing A string coming from XML with another String and results were showing that they are not equal. but in NSLog() both were same ( e.g. Valore Books ).

then i checked the Source of the XML and i came to know that the actual string is "Valore Books" and   is infact a space. but the problem is this when i am comparing it with @"Valore Books", it is saying both are not same.

What to Do ??


Solution

  • i solved the problem using a string parsing utility provided by google. Thanks everybody.