addingPercentEscapes(using:)

Returns a representation of the String using a given encoding to determine the percent escapes necessary to convert the String into a legal URL string.

Declaration

func addingPercentEscapes(using encoding: String.Encoding) -> String?