title: How to encode URL in objective c xcode?
body: <p>I'm doing this to encode my URL in this way,
  but its not working,
  i got the result in NSLog but its the same url nothing is changing.</p>
  
  <p>Please help me to sort this issue.</p>
  
  <p>below is my code :</p>
  
  <pre><code> NSString *unencodedUrlString = 
  
  [@"http://www.demii.com/demo/dooponz/admin/index.php/chat/new_message/4/1/you/2,7" 
  
  stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
  
  NSLog(@" %@", unencodedUrlString);
  </code></pre>
  
  <p>Thanks in advance</p>