Re: What is this invisible character?
Re: What is this invisible character?
- Subject: Re: What is this invisible character?
- From: "J. Todd Slack" <email@hidden>
- Date: Tue, 18 Mar 2008 21:53:11 -0700
- Thread-topic: What is this invisible character?
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 (email@hidden)
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:
This email sent to email@hidden