Encoding:
StringByAddingPercentEscapesUsingEncoding:
Returns a representation of the specified er using a given encoding to determine the percent escapes necessary to convert the specified ER into a legal URL string.
-(NSString *) stringByAddingPercentEscapesUsingEncoding :( NSStringEncoding)
EncodingParameters
-
Encoding
-
The encoding to use for the returned string.
Return Value
A representation of the specified er usingEncodingTo determine the percent escapes necessary to convert the caller into a legal URL string. ReturnsnilIfEncodingCannot encode a participant character
Decoding:
StringByReplacingPercentEscapesUsingEncoding:
Returns a new string made by replacing in the specified er all percent escapes with the matching characters as determined by a given encoding.
-(NSString *) stringByReplacingPercentEscapesUsingEncoding :( NSStringEncoding)
EncodingParameters
-
Encoding
-
The encoding to use for the returned string.
Return Value
A new string made by replacing in the specified er all percent escapes with the matching characters as determined by the given encodingEncoding. ReturnsnilIf the transformation is not possible, for example, the percent escapes give a byte sequence not legal inEncoding.