title: XCode, iOS: Parsing HTML encoding with hpple
body: <p>I have a problem with encoding when parsing web page with hpple in XCode.</p>
  
  <pre><code>- (void)loadTutorials {
  
  NSURL *tutorialsUrl = [NSURL URLWithString:@"http://qrz.si/members/s55db/"];
  NSData *tutorialsHtmlData = [NSData dataWithContentsOfURL:tutorialsUrl options:NSASCIIStringEncoding error:nil];
  
  
  TFHpple *tutorialsParser = [TFHpple hppleWithHTMLData:tutorialsHtmlData];
  
  NSString *tutorialsXpathQueryString = @"//td[@class='data']";
  NSArray *tutorialsNodes = [tutorialsParsersearchWithXPathQuery:tutorialsXpathQueryString];
  
  
  NSMutableArray *newTutorials = [[NSMutableArray alloc] initWithCapacity:0];
  for (TFHppleElement *element in tutorialsNodes) {
      Tutorial *tutorial = [[Tutorial alloc] init];
      [newTutorials addObject:tutorial];
  
  
      for (TFHppleElement *child in element.children) {
          if ([child.tagName isEqualToString:@"img"]) {
             // NSLog([child objectForKey:@"src"]);
          } else if ([child.tagName isEqualToString:@"p"]) {
              //NSLog([[child firstChild] content]);
              tutorial.title = [[child firstChild] content];
          }
      }
  }
  
  _objects = newTutorials;
  [self.tableView reloadData];
  }
  </code></pre>
  
  <p>Page should be UTF-8 as the source points out, but I get wierd characters out.</p>
  
  <p>How can I force change encoding of the data? Any help would be highly appreciated!</p>