title: encoding url using swift code
body: <p>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.</p>
  
  <p>Below is an example what i really need</p>
  
  <pre><code>var s = "www.example.com/السلام عليكم"
  
  let url = NSURL(string : s)
  </code></pre>
  
  <p>So the word (السلام عليكم) is in Arabic characters that what I want to send.</p>