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
You need to encode this string as it contains special characters.
var s = "www.example.com/السلام عليكم" let encodedLink = s.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed) let encodedURL = NSURL(string: encodedLink!)! as URL
where encodedURL is your final URL