Re: plist help?
Re: plist help?
- Subject: Re: plist help?
- From: Ali Ozer <email@hidden>
- Date: Sat, 20 Sep 2003 13:34:14 -0700
For filenames, if you must extract them as 8-bit, use the NSString
method fileSystemRepresentation, declared in NSPathUtilities.h.
What about using the UTF8String methods? From my read of all of the
documentation while writing "Learning Cocoa with Objective-C", I was
under the impression that UTF8 was safe as all of the BSD functions
were UTF8 aware.
For the file system, fileSystemRepresentation is better as it will deal
with the extra trickery with regards to Unicode decomposition and such;
in addition, it should protect you from any potential changes in the
underlying encoding.
You're right that when dealing with BSD in things other than file names
and paths, the UTF8String method is the way to go...
Ali
_______________________________________________
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.