• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: UNICODE from a WinTel box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UNICODE from a WinTel box
      • From: j o a r <email@hidden>
References: 
 >Re: UNICODE from a WinTel box (From: j o a r <email@hidden>)

  • Prev by Date: Re: Interface not receiving messages until action method completes
  • Next by Date: Re: UNICODE from a WinTel box
  • Previous by thread: Re: UNICODE from a WinTel box
  • Next by thread: Re: UNICODE from a WinTel box
  • Index(es):
    • Date
    • Thread