• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSXMLParser returns error 31
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLParser returns error 31


  • Subject: NSXMLParser returns error 31
  • From: Jesus De Meyer <email@hidden>
  • Date: Tue, 21 Jun 2005 23:02:59 +0200

Hi again,

I'm currently having one hell of a problem. I load xml files from some websites and some of them fail to parse. Most of the time I get code 31 (Unknown encoding). So I tried to sove this by forcing the encodings:

NSString *stringData = [[[NSString alloc] initWithData:feedData encoding:NSISOLatin1StringEncoding] autorelease];

    

xmlParser = [[NSXMLParser alloc] initWithData:[stringData dataUsingEncoding:NSISOLatin1StringEncoding]];
[xmlParser setDelegate:self];


feedData is an NSMutableData that contains the data from the xml file.
However, this doesn't work. Does anyone have a better solution? Any help is highly appreciated :)

Thanks in advance
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: CoreData/Bindings and NSComboBox
  • Next by Date: [ANN] QuickLite 1.5.4 is now available
  • Previous by thread: CoreData/Bindings and NSComboBox
  • Next by thread: [ANN] QuickLite 1.5.4 is now available
  • Index(es):
    • Date
    • Thread