RE: UNICODE from a WinTel box
RE: UNICODE from a WinTel box
- Subject: RE: UNICODE from a WinTel box
- From: "Kenny Millar" <email@hidden>
- Date: Wed, 4 Jan 2006 13:01:18 -0000
> What happens if you use a non-deprecated method, like
> "-[NSString initWithData:encoding:]"?
AFAIK stringWithCharacters is not deprecated.
As for initWithData, I get the same results if I use
NSUnicodeStringEncoding, and only the first character of the string if I use
any of the NSWindows* encodings. (Presumably they see the 0 byte in unicode
as a terminator).
Nice try though ;-)
-KennyM
> -----Original Message-----
> From: j o a r [mailto:email@hidden]
> Sent: 04 January 2006 12:37
> To: Kenny Millar
> Cc: email@hidden
> Subject: Re: UNICODE from a WinTel box
>
>
> On 4 jan 2006, at 12.48, Kenny Millar wrote:
>
> > So when I tried using [NSString
> stringWithCharacters:(unichar *)&data
> > length:sizeof(data)] obviously the resulting string was
> garbled due to
> > the inccorect endian-ness.
>
> What happens if you use a non-deprecated method, like
> "-[NSString initWithData:encoding:]"?
>
> j o a r
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden