title: URL decode in iOS
body: <p>I am using Swift 1.2 to develop my iPhone application and I am communicating with a http web service.</p>
  
  <p>The response I am getting is in query string format (key-value pairs) and URL encoded in <code>.Net</code>. </p>
  
  <p>I can get the response, but looking the proper way to decode using Swift.</p>
  
  <p>Sample response is as follows</p>
  
  <pre><code>status=1&amp;message=The+transaction+for+GBP+12.50+was+successful
  </code></pre>
  
  <p>Tried following way to decode and get the server response</p>
  
  <pre><code>// This provides encoded response String
  var responseString = NSString(data: data, encoding: NSUTF8StringEncoding) as! String
  var decodedResponse = responseString.stringByReplacingEscapesUsingEncoding(NSUTF8StringEncoding)!
  </code></pre>
  
  <p>How can I replace all URL escaped characters in the string?</p>