FROM : stephen joseph butler
DATE : Thu May 01 19:43:38 2008
On Thu, May 1, 2008 at 12:03 PM, Matt Long <matt.<email_removed>>
wrote:
> Stephen Butler pointed out that I need to use -[NSString
> fileSystemRepresentation]. I have switched to this and it works. I not real
> familiar with this call, but it looks like it's working. I'll look into why
> this is the better choice. I'm just not familiar.
For almost all intents and purposes, it returns UTF-8, because that's what
the APIs to HFS+, et al expect. However, it's conceivable that some file
system might want path strings in another (legacy) format. Say, Shift_JIS,
Big5, or KOI8-R.
I'm not sure any do. I'm not even sure the vfs layer allows the fs to
register a preference. But there's a function for it, so you might as well
use it.
DATE : Thu May 01 19:43:38 2008
On Thu, May 1, 2008 at 12:03 PM, Matt Long <matt.<email_removed>>
wrote:
> Stephen Butler pointed out that I need to use -[NSString
> fileSystemRepresentation]. I have switched to this and it works. I not real
> familiar with this call, but it looks like it's working. I'll look into why
> this is the better choice. I'm just not familiar.
For almost all intents and purposes, it returns UTF-8, because that's what
the APIs to HFS+, et al expect. However, it's conceivable that some file
system might want path strings in another (legacy) format. Say, Shift_JIS,
Big5, or KOI8-R.
I'm not sure any do. I'm not even sure the vfs layer allows the fs to
register a preference. But there's a function for it, so you might as well
use it.
| Related mails | Author | Date |
|---|---|---|
| Matt Long | May 1, 02:42 | |
| Steve Christensen | May 1, 07:03 | |
| Mike Fischer | May 1, 09:39 | |
| Michael Vannorsdel | May 1, 10:15 | |
| stephen joseph but… | May 1, 10:26 | |
| Mike Fischer | May 1, 16:42 | |
| Matt Long | May 1, 19:03 | |
| stephen joseph but… | May 1, 19:43 | |
| Clark Cox | May 1, 19:48 | |
| Douglas Davidson | May 1, 20:00 |






Cocoa mail archive

