Skip navigation.
 
mlRe: printf with "%@"
FROM : Deborah Goldsmith
DATE : Fri Aug 11 23:41:19 2006

If the output is aimed at Terminal then you should always use 
UTF8String, not cStringUsingEncoding:

Deborah Goldsmith
Internationalization, Unicode liaison
Apple Computer, Inc.
<email_removed>

On Aug 11, 2006, at 9:47 AM, Dirk Stegemann wrote:

> So, 1) replacing "NSLog" by "printf", 2) replacing "%@" by "%s" and 
> 3) passing the const char* obtained through sending 
> "cStringUsingEncoding:" (or "UTF8String:" as Greg pointed out) to 
> the description NSString of the object in question should simulate 
> NSLog's behaviour pretty well.

Related mailsAuthorDate
mlprintf with "%@" Roland Silver Aug 11, 17:55
mlRe: printf with "%@" Dirk Stegemann Aug 11, 17:57
mlRe: printf with "%@" Roland Silver Aug 11, 18:08
mlRe: printf with "%@" Dirk Stegemann Aug 11, 18:19
mlRe: printf with "%@" Roland Silver Aug 11, 18:26
mlRe: printf with "%@" Piers Uso Walter Aug 11, 18:41
mlRe: printf with "%@" Joseph Kelly Aug 11, 18:41
mlRe: printf with "%@" Dirk Stegemann Aug 11, 18:47
mlRe: printf with "%@" Deborah Goldsmith Aug 11, 23:41
mlRe: printf with "%@" Andrew Farmer Aug 12, 00:28
mlRe: printf with "%@" Wayne Hasley Aug 12, 01:28