title: make post request with dictionary and utf-8 in swift
body: <p>I need to make a post request to send a dictionary in the body of post request that needs to be encoded with utf-8, 
  I tried this below but it gives an error: </p>
  
  <pre><code>  let DicObject: NSMutableDictionary = NSMutableDictionary()
          DicObject.setValue("cf", forKey: "a")
          DicObject.setValue("", forKey: "scs")
          DicObject.setValue("Uploads/" + nameOfFile, forKey:"p")
  </code></pre>
  
  <p>when I try to make </p>
  
  <pre><code> request.httpMethod = "POST"
        //  request.httpBody = jsonObject as Data
          request.addValue("Content-Type", forHTTPHeaderField: "application/x-www-form-urlencoded; charset=utf-8")
  </code></pre>
  
  <p>it doesn't work, Does anyone know how to convert <code>jsonObject</code> encode to utf-8 </p>
  
  <p>Thanks.</p>