title: Converting NSData to NSString in NSURLConnection = null
body: <p>I'm sending data to the server and it is responding to my request and I'm getting a text as shown below in the web... Where would be my issue in  <code>NSString* newStr = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];</code> it is not responding to my NSData while there is data in <code>responseData</code>.</p>
  
  <p>My response message:</p>
  
  <p><code>{ret:0,msg:"&lt;B&gt;Your request has submitted&lt;/B&gt;&lt;br/&gt;Your request number is 123 &lt;br/&gt;Have a nice day.&lt;br/&gt;"}</code></p>
  
  <p>My code:</p>
  
  <pre><code>    NSString *link = @"http://example.jsp";
  
  NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"first_name=%@&amp;last_name=%@&amp;phone=%@", link, nameField.text, surnameField.text, phoneField.text]];
  
  NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
  
  [request setHTTPMethod:@"POST"];
  
  NSURLResponse *response;
  NSError *err;
  NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;err];
  
  NSLog(@"responseData: %@", responseData);
  
  NSString* newStr = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
  
  NSLog(@"Finish %@", newStr); // newStr is null!!
  
  UIAlertView *message = [[UIAlertView alloc] initWithTitle:title
                                                    message:newStr
                                                   delegate:self
                                          cancelButtonTitle:@"OK"
                                          otherButtonTitles:nil];
  [message show];
  </code></pre>