Re: Get an escape sequence out of an NSString
Re: Get an escape sequence out of an NSString
- Subject: Re: Get an escape sequence out of an NSString
- From: Alex Kac <email@hidden>
- Date: Sat, 14 Aug 2010 13:06:47 -0500
Nevermind. I figured out my problem. I had a space in front of the character and it was late and I didn't recognize the decimal as I know it better in hex.
--
Sent from my mobile phone
(please excuse any mistakes or short response I might have made)
On Aug 13, 2010, at 10:05 PM, Alex Kac <email@hidden> wrote:
> Given an NSString @"\ue001" like this, how does one get the value into an NSInteger so that its equal to 0xe001? I've tried converting it to an NSData with an encoding of NSUTF16BigEndianStringEncoding, but I'm not getting what I expect. Experience has taught me that usually its because I'm being dumb. So trying to get out of being dumb, I'm asking for help.
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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