NSASCIIStringEncoding gets a 'huh'?

33 views
Skip to first unread message

jcb

unread,
Apr 30, 2009, 12:21:47 AM4/30/09
to JSTalk Dev
var encodedString = [myStr
stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];

breaks I think because the preprocessor can't deal with
NSASCIIStringEncoding. Is there another thingie, doohickie,
includamous, something I'm supposed to..uh..include, add at the
beginning, screw with?

Patrick Geiller

unread,
Apr 30, 2009, 12:14:09 PM4/30/09
to jstal...@googlegroups.com
Make sure myStr is a NSString and not a Javascript string. Add myStr = [NSString stringWithString:myStr] before the offending line.

-Patrick
Reply all
Reply to author
Forward
0 new messages