Instance Property

removingPercentEncoding

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

Declaration

var removingPercentEncoding: String? { get }

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

func addingPercentEncoding(withAllowedCharacters: CharacterSet) -> String?

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software