[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: converting hex values to characters..
From: |
Richard Frith-Macdonald |
Subject: |
Re: converting hex values to characters.. |
Date: |
Fri, 4 Jan 2002 10:50:22 +0000 |
On Friday, January 4, 2002, at 09:52 AM, kotesh wrote:
Hi,
HAPYY NEW YEAR for everybody.
I have a question on converting hex values into characters defined in
property list. The following property list contains a two hex
characters 10('\n') and 97('a') defined against "Delimiters" key.
Delimiters key is creating NSMutableData object which contains the hex
values. I did not find any method in NSMutableData for converting these
values into characters.Some of the methods like bytes and get bytes
are not showing desired characters.
Please let me know if there is a way to convert hex bytes defined in
PropertyList to characters..
The property list contains an NSData object ... if you want to convert
the NSData to a string you need to
use [NSString -initWithData:encoding:]