title: Error parsing XML encoding objective c
body: <p>I'm trying to parse an XML with AFXMLRequestOperation but the parsing stops when found the "ç" string, i dont know exactly how to parse this pice of string heres the code :</p>
  
  <pre><code>AFXMLRequestOperation * op = [AFXMLRequestOperation XMLParserRequestOperationWithRequest:req success:^(NSURLRequest *request, NSHTTPURLResponse *response, NSXMLParser *XMLParser)
  {
      NSLog(@"XML document %@", XMLParser);
      NSLog(@"response %@",response);
  
      XMLParser.delegate = self;
      [XMLParser parse];
  
  }failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, NSXMLParser *XMLParser) {
      NSLog(@"response %@",response);
      NSLog(@"Error %@", error);
  }];
  
  
  - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
  {    
      NSString *correctString = [NSString stringWithCString:[string cStringUsingEncoding:NSISOLatin1StringEncoding] encoding:NSUTF8StringEncoding];
      NSLog(@"string %@",correctString);
  }
  </code></pre>
  
  <p>and here is the XML :</p>
  
  <pre><code>&lt;env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;&lt;env:Header&gt;&lt;wsa:MessageID&gt;urn:E350F180FDEF11E2BF9C23C51C52395C&lt;/wsa:MessageID&gt;&lt;wsa:ReplyTo&gt;&lt;wsa:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/wsa:Address&gt;&lt;wsa:ReferenceParameters&gt;&lt;instra:tracking.ecid xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0"&gt;66a9395e96ada9e8:-78e4245e:1401282173b:-8000-0000000000210667&lt;/instra:tracking.ecid&gt;&lt;/wsa:ReferenceParameters&gt;&lt;/wsa:ReplyTo&gt;&lt;wsa:FaultTo&gt;&lt;wsa:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/wsa:Address&gt;&lt;wsa:ReferenceParameters&gt;&lt;instra:tracking.ecid xmlns:instra="http://xmlns.oracle.com/sca/tracking/1.0"&gt;66a9395e96ada9e8:-78e4245e:1401282173b:-8000-0000000000210667&lt;/instra:tracking.ecid&gt;&lt;/wsa:ReferenceParameters&gt;&lt;/wsa:FaultTo&gt;&lt;/env:Header&gt;&lt;env:Body&gt;&lt;TransactionResponse xmlns:aia="http://www.oracle.com/XSL/Transform/java/oracle.apps.aia.core.xpath.AIAFunctions" xmlns:ns0="http://www.site.com.br/" xmlns="http://www.site.com.br/"&gt;&lt;ns0:Acquirer&gt;ECOMMERCE&lt;/ns0:Acquirer&gt;&lt;ns0:TransactionId&gt;00&lt;/ns0:TransactionId&gt;&lt;ns0:Complement&gt;192071&lt;/ns0:Complement&gt;&lt;ns0:AdditionalComplement&gt;123456&lt;/ns0:AdditionalComplement&gt;&lt;ns0:ResponseCode&gt;00&lt;/ns0:ResponseCode&gt;&lt;ns0:ResponseMessage&gt;Transação Autorizada&lt;/ns0:ResponseMessage&gt;&lt;ns0:TransactionStatus&gt;PAGO&lt;/ns0:TransactionStatus&gt;&lt;ns0:TransactionDate&gt;2013-08-05T13:55:37.602-03:00&lt;/ns0:TransactionDate&gt;&lt;ns0:OrderNumber&gt;0000014&lt;/ns0:OrderNumber&gt;&lt;/TransactionResponse&gt;&lt;/env:Body&gt;&lt;/env:Envelope&gt;
  </code></pre>