Re: NSString vs. unicode encoding
Re: NSString vs. unicode encoding
- Subject: Re: NSString vs. unicode encoding
- From: Johan Kool <email@hidden>
- Date: Tue, 15 Sep 2009 22:10:22 -0700
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 = 32
decimal). What's unusual about either of these strings?
Sorry, I was confused by what the actual content of the NSString was
in my app. It turned out it was @"hello\\040world". I would still like
to get that to print as "hello world" though, not "hello\040world".
Johan
---
http://www.johankool.nl/
KOOLISTOV - Software for Mac and iPhone
http://www.koolistov.net/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden