Instance Property

stringByRemovingPercentEncoding

Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters.

Declaration

@property(readonly, copy) NSString *stringByRemovingPercentEncoding;

Return Value

A new string with the percent-encoded sequences removed, or nil if the receiver contains an invalid percent-encoding sequence.

See Also

Working with URL Strings

- stringByAddingPercentEncodingWithAllowedCharacters:

Returns a new string made from the receiver by replacing all characters not in the specified set with percent-encoded characters.