• 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
Unicode Encoding issue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unicode Encoding issue?


  • Subject: Unicode Encoding issue?
  • From: Renaud Boisjoly <email@hidden>
  • Date: Sun, 1 Dec 2002 18:36:46 -0500

Hi!

I'm having a strange issue with my program.

I have an array, pageNames which contains a list of page names as strings. This is saved in a dict which is saved to a regular file.

Each page (RTFD data) is converted to a fileWrapper and added to a dictionary of wrappers using its name (same as the array) as its key. All this is saved, I then get a bunch of files (rtfd) which work fine).

Say a page is called "Page 1i.rtfd", when I save all this the name in the array is encoded as: Page 1\\351.rtfd and the same goes for the key in the dictionary: Page 1\\351.rtfd

But when I read it, the page name in the array is still: Page 1\\351.rtfd but when I list the keys in the dictionary of file wrappers, It reads as: Page 1e\\u0301.rtfd

What is happening? Why is it decoded differently all of a sudden?

Is there at least a way to take these two and compare them or convert the first to find it properly using objectForKey?

I do not know where to look any more, help!

Thanks!

Renaud
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Unicode Encoding issue?
      • From: Renaud Boisjoly <email@hidden>
References: 
 >Re: Strange NSTable notification error (From: j o a r <email@hidden>)

  • Prev by Date: Sample code for FileWrapers?
  • Next by Date: Re: Carbonish aliases for Cocoa?
  • Previous by thread: Re: Strange NSTable notification error
  • Next by thread: Re: Unicode Encoding issue?
  • Index(es):
    • Date
    • Thread