Skip navigation.
 
mlRe: checking for line ending types
FROM : mmalcolm crawford
DATE : Sun Nov 28 04:37:25 2004

On Nov 27, 2004, at 5:03 PM, Andrew Farmer wrote:

>> Good day, Hunter.  Your code looks fine, but you should note that the
>> method -[NSString cString] will, according too Apple's NSString class
>> docs, be 'deprecated in the near future.'  They instead recommend
>> that one use 'UTF8String to convert arbitrary NSStrings to a lossless
>> 8-bit representation.'

> Except that if your input isn't UTF-8, -[NSString UTF8String] may give
> you screwed-up results. -[NSString cString] has its place.
>

As noted in another thread, cString should be considered deprecated
(it's flagged as thus in the documentation).  If you're not using UTF8,
you are encouraged to use dataUsingEncoding:allowLossyConversion: etc.
instead.

mmalc

Related mailsAuthorDate
mlchecking for line ending types Craig Hunter Nov 27, 18:43
mlRe: checking for line ending types Graham J Lee Nov 27, 18:57
mlRe: checking for line ending types Andrew Merenbach Nov 28, 00:40
mlRe: checking for line ending types Andrew Farmer Nov 28, 02:03
mlRe: checking for line ending types mmalcolm crawford Nov 28, 04:37
mlRe: Checking for line ending types Mike S Nov 29, 03:22
mlRe: Checking for line ending types Fritz Anderson Nov 29, 03:49
mlRe: Checking for line ending types Craig Hunter Nov 29, 05:29
mlchecking for line ending types heinrich.giesen Nov 29, 10:36