Re: NSStrings to CStrings and hex encoding...

2014-06-24 Thread Andrew Satori
And we have a winner. Thanks. I had unchecked it in XCode, so didn't think that was the culprit, but your code change made things all better. Thanks, I knew it was something obvious and simple. On Jun 24, 2014, at 10:29 PM, Stephen J. Butler wrote: > Those are the UTF-8 sequences for smart

Re: NSStrings to CStrings and hex encoding...

2014-06-24 Thread Roland King
well the 'problem' is that the quotation marks you have in there aren't the usual 0x27 simple quotes but the pretty left/right quote marks which are unicode U+2018 and U+2019. 0xE28098 is the UTF-8 representation of the first of those, 0xE28099 is the encoding of the second one. So either the

Re: NSStrings to CStrings and hex encoding...

2014-06-24 Thread Stephen J. Butler
Those are the UTF-8 sequences for smart quotes. It's not coming from cStringUsingEncoding, but directly from NSTextView: http://stackoverflow.com/questions/19801601/nstextview-with-smart-quotes-disabled-still-replaces-quotes Rant: This has been a super annoying Mavericks feature IMHO. Even when y

NSStrings to CStrings and hex encoding...

2014-06-24 Thread Andrew Satori
Alright, I am stumped so I am asking for help (and it is annoying me because I am 100% certain that the answer will be stupid simple). I have a bit of code (old code I might add) that I am updating to ARC and other such modern features. Unfortunately, I have run into a little snag. The code c