On Jul 26, 2006, at 3:38 PM, Stéphane Sudre wrote:
Ok, I need to rephrase the question to use the proper terms.
How can I save a string in a plist inside <string></string> tags so
that the string is saved with character escaping for the '\r' (and
probably '\n') characters?
This is done automatically for the & character.
While it's not automatic, would NSString's -
stringByAddingPercentEscapesUsingEncoding: and -
stringByReplacingPercentEscapesUsingEncoding: work for you?
Admittedly, it's overkill as it'll convert practically everything
(including any spaces) - but it'll convert that pesky \r for you
while it's at it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden