Unicode Encoding issue?
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.