I need to compare a string from an url using NSutf8stringencoding in order to return 1 or 0, but it always returns 0 even if the string has value 1.
NSutf8stringencoding
There are probably other characters in the string.
Use
[strResult stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];