• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is this invisible character?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What is this invisible character?
      • From: Jens Alfke <email@hidden>
    • Re: What is this invisible character?
      • From: "stephen joseph butler" <email@hidden>
References: 
 >Re: What is this invisible character? (From: "stephen joseph butler" <email@hidden>)

  • Prev by Date: Re: What is this invisible character?
  • Next by Date: Re: What is this invisible character?
  • Previous by thread: Re: What is this invisible character?
  • Next by thread: Re: What is this invisible character?
  • Index(es):
    • Date
    • Thread