Hi Stephen,

>> What is the grey diamond character so I can reproduce this? If I donĀ¹t use
>> it the format is not recognized.
>> 
>> How do I do the grey diamond in code?
> 
> Off the top of my head, it's probably '\0'. Tell TextMate to re-open the
> file with UTF-16BE, I bet the diamonds go away.

Yes, they do. What does this mean for how I write it out currently?
 
I get, as UTF-16BE, showing invisibles:
200803181051
/Users/slack/Music
/Users/slack/Documents

So how do I write out a text file in UTF16-BE encoding? Maybe this would
solve my problem.

Currently I am doing:
if ([predefinedSessionDocumentsFileContents writeToFile:
pathToUsersImpressionDocumentsSessionFile atomically: YES]) {}
        else { NSLog (@"Failure writing Documents Session File On Startup");
}

I am putting absolute paths into the file, so data like:
/Users/slack/Documents
/Users/slack/Music

Any thoughts?
-Jason




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to