FROM : Adam R. Maxwell
DATE : Sat Mar 15 20:48:51 2008
On Mar 15, 2008, at 12:34 PM, Keith Duncan wrote:
>> -cString has been deprecated for a very long time; it's better to
>> use UTF8String.
>
> Not all file systems support UTF8, you should use -
> fileSystemRepresentation instead for compatability.
For some APIs, but not in this case. The OP is creating a CFString
and explicitly specifying UTF-8 input but passing the result of -
cString, which is generally not UTF-8.
DATE : Sat Mar 15 20:48:51 2008
On Mar 15, 2008, at 12:34 PM, Keith Duncan wrote:
>> -cString has been deprecated for a very long time; it's better to
>> use UTF8String.
>
> Not all file systems support UTF8, you should use -
> fileSystemRepresentation instead for compatability.
For some APIs, but not in this case. The OP is creating a CFString
and explicitly specifying UTF-8 input but passing the result of -
cString, which is generally not UTF-8.
| Related mails | Author | Date |
|---|---|---|
| Kevin Dixon | Mar 15, 20:04 | |
| Adam R. Maxwell | Mar 15, 20:23 | |
| Jean-Daniel Dupas | Mar 15, 20:25 | |
| Keith Duncan | Mar 15, 20:34 | |
| Adam R. Maxwell | Mar 15, 20:48 | |
| Stuart Malin | Mar 16, 07:49 | |
| stephen joseph but… | Mar 16, 09:11 | |
| Nir Soffer | Mar 16, 10:41 | |
| Jean-Daniel Dupas | Mar 16, 12:09 | |
| Jens Alfke | Mar 16, 16:35 | |
| Stuart Malin | Mar 16, 18:09 | |
| Michael Ash | Mar 16, 19:15 | |
| Adam R. Maxwell | Mar 16, 19:38 | |
| Kevin Dixon | Mar 17, 16:44 | |
| Sean McBride | Mar 17, 17:27 |






Cocoa mail archive

