Re: NSString vs. unicode encoding

2009-09-16 Thread Johan Kool
Op 16 sep 2009, om 11:31 heeft Shawn Erickson het volgende geschreven: On Tue, Sep 15, 2009 at 9:04 PM, Johan Kool wrote: Dear list, I need to work with strings as in stringA. (I don't have much choice, but to have it in a NSString at the start.) I want to have the readable output "hello

Re: NSString vs. unicode encoding

2009-09-16 Thread Shawn Erickson
On Tue, Sep 15, 2009 at 9:04 PM, Johan Kool wrote: > Dear list, > > I need to work with strings as in stringA. (I don't have much choice, but > to have it in a NSString at the start.) I want to have the readable output > "hello world". > > NSString *stringA = @"hello\040world"; > NSString *string

Re: NSString vs. unicode encoding

2009-09-15 Thread Johan Kool
Op 15 sep 2009, om 22:26 heeft Stephen J. Butler het volgende geschreven: On Wed, Sep 16, 2009 at 12:10 AM, Johan Kool wrote: Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven: On Sep 15, 2009, at 9:04 PM, Johan Kool wrote: NSString *stringA = @"hello\040world"; NSStrin

Re: NSString vs. unicode encoding

2009-09-15 Thread Stephen J. Butler
On Wed, Sep 16, 2009 at 12:10 AM, Johan Kool wrote: > Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven: >> On Sep 15, 2009, at 9:04 PM, Johan Kool wrote: >> >>> NSString *stringA = @"hello\040world"; >>> NSString *stringB =  [NSString stringWithUTF8String:"hello\040world"] ; >> >>

Re: NSString vs. unicode encoding

2009-09-15 Thread Johan Kool
Op 15 sep 2009, om 21:50 heeft Jens Alfke het volgende geschreven: On Sep 15, 2009, at 9:04 PM, Johan Kool wrote: NSString *stringA = @"hello\040world"; NSString *stringB = [NSString stringWithUTF8String:"hello \040world"] ; I'm confused. '\040' is a regular ascii space character (040 = 3

Re: NSString vs. unicode encoding

2009-09-15 Thread Jens Alfke
On Sep 15, 2009, at 9:04 PM, Johan Kool wrote: NSString *stringA = @"hello\040world"; NSString *stringB = [NSString stringWithUTF8String:"hello \040world"] ; I'm confused. '\040' is a regular ascii space character (040 = 32 decimal). What's unusual about either of these strings? // Thi

NSString vs. unicode encoding

2009-09-15 Thread Johan Kool
Dear list, I need to work with strings as in stringA. (I don't have much choice, but to have it in a NSString at the start.) I want to have the readable output "hello world". NSString *stringA = @"hello\040world"; NSString *stringB = [NSString stringWithUTF8String:"hello\040world"] ; // T