According to the NSString class reference, this method
"Returns nil if the initialization fails for some reason (for example if data does not represent valid data for encoding)."
So you can check if your "addr" is nil. If not, then it more than likely can't be converted to UTF8.
|