specify the right encoding for the original string. use NSData's
initWithContentsOfFile: which allows you to specify the encoding of the
text file which i found out using BBEdit.
the character i'm looking at for example is ‘ that is the single left
quote. i've got that into my string from a text file by using
initWithContentsOfFile: for NSString. the above print statement
results in:
235 eb \\353
it doesn't seem to tally with any unicode tables that i can see.
single left quote is 8216 and 0x2018. i know the console can't display
unicode chars but what is \\353 ? it doesn't seem to correspond to
anything.
i want to test for the existence of various quote marks. how can i do
that?
thanks, ben.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden