• 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
NSKeyedArchiver UTF-8 problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSKeyedArchiver UTF-8 problems


  • Subject: NSKeyedArchiver UTF-8 problems
  • From: Raphael Bartolome <email@hidden>
  • Date: Thu, 6 Oct 2005 11:09:32 +0200

Hi,
I have archived with the NSKeyedArchiver a own data structure.
When I save it local their is no problem I could open the file with Property List.app from apple.


But now I have send it with NSFileHandle to other computers and the result is when I use NSKeyedunarchiver:

"CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
/Users/raphael/Library/KeyBindings/DefaultKeyBinding.dict
The parser will retry as in 10.2, but the problem should be corrected in the plist.
2005-10-06 10:13:35.694 CocoaGabriel[1768] Exception raised during posting of notification. Ignored. exception: *** - [NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)"



First I transform the NSMutableDictionary into NSData by using this
[self setTransferData:[NSKeyedArchiver archivedDataWithRootObject:resultDictionary]];


then I send the data with

NSData *sendData = [[NSData alloc]initWithBytes:[[data_object transferData]bytes] length:[[data_object transferData]length]];
[remoteFH writeData:sendData];



The incomming data will read:

resultDictionary = [NSKeyedUnarchiver unarchiveObjectWithData:data];


I have no idea who can I get the NSData into UTF-8

Thanks & regards
raphael
_______________________________________________
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


  • Follow-Ups:
    • Re: NSKeyedArchiver UTF-8 problems
      • From: j o a r <email@hidden>
  • Prev by Date: Re: only defined for abstract class
  • Next by Date: Re: NSKeyedArchiver UTF-8 problems
  • Previous by thread: [ANN] The return of my ObjectiveC Expat wrapper - ObjectiveExpat
  • Next by thread: Re: NSKeyedArchiver UTF-8 problems
  • Index(es):
    • Date
    • Thread