I need to send an URL in Arabic language, so I need to encode it before I put it in URL. I am using Swift code.
Below is an example what i really need
va
swift 4 we face the same problem it solved by this way
extension String { var fixedArabicURL: String? { return self.addingPercentEncoding(withAllowedCharacters: CharacterSet.alphanumerics .union(CharacterSet.urlPathAllowed) .union(CharacterSet.urlHostAllowed)) } }