• 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
Decoding ANSI c string from win32
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Decoding ANSI c string from win32


  • Subject: Decoding ANSI c string from win32
  • From: JONATHANJOSEPH HESS <email@hidden>
  • Date: Tue, 5 Nov 2002 00:19:26 -0800 (PST)

I'm reading data off a socket that was generated via windows c strings
(vanilla char *'s), I need to convert that data to NSString objects. I've
been using NSString's stringWithCString: but that doesn't seem optimal.
msdn.microsoft.com says windows c strings are "ANSI"

What constant does this best correlate to ?
NSWindowsCP1250StringEncoding?
NSWindowsCP1252StringEncoding?

Or some other one?
What id the diff between those two btw?


Thanks -
Jon Hess
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa really needs to be thread-safe
  • Next by Date: Re: Cocoa really needs to be thread-safe
  • Previous by thread: Re: Calling the same function in multiple classes
  • Next by thread: Re: Decoding ANSI c string from win32
  • Index(es):
    • Date
    • Thread