• 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
Re: Reading in UTF-8 to Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading in UTF-8 to Data


  • Subject: Re: Reading in UTF-8 to Data
  • From: Brad Stone <email@hidden>
  • Date: Fri, 16 Jul 2010 12:59:15 -0400

Kyle - I have my legacy file format perfectly parsed into an NSDictionary and my code works fine from the NSOpenPanel to select the legacy document to creating the new document in Cocoa, adding it to the managedObjectContext, inserting the data in all the right places and saving the new document.  The process would be perfect if I could decode the quoted-printable text in Cocoa.  That's the only thing that's still incomplete.  What I meant when I said "Cocoa to do it" was that I would like to decode in Cocoa versus having to create additional code in the legacy app to create a new file format w/o the quoted-printable encoding.  Hopefully that's a clearer explanation.

Does anyone have any code snippets they can share that will decode quoted-printable?


On Jul 16, 2010, at 11:31 AM, Kyle Sluder wrote:

> On Fri, Jul 16, 2010 at 5:58 AM, Brad Stone <email@hidden> wrote:
>> The XML file is from an app I wrote a long time ago and contains thousands of documents similar to this one.  Once Nick mentioned quotable-printable I remembered I used that.  It was so long ago I had forgotten.  There are many users that use the app and each of them have hundreds, if not thousands, of individual XML files and they need this functionality.  My last resort would be to send out update for the old app to all the users to reprocess their XML files w/o the quoted-printable but you know how that will go.  If I could only get Cocoa to do it I'd be done.
>
> The framework knows nothing about your file format, so you can't "get
> Cocoa to do it." You'll simply need to perform the conversion yourself
> when you read the file in from disk.
>
> --Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Reading in UTF-8 to Data (From: Greg Guerin <email@hidden>)
 >Re: Reading in UTF-8 to Data (From: Brad Stone <email@hidden>)
 >Re: Reading in UTF-8 to Data (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Reading in UTF-8 to Data
  • Next by Date: Re: Reading in UTF-8 to Data
  • Previous by thread: Re: Reading in UTF-8 to Data
  • Next by thread: Re: Reading in UTF-8 to Data
  • Index(es):
    • Date
    • Thread