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

Re: Decoding ANSI c string from win32


  • Subject: Re: Decoding ANSI c string from win32
  • From: "T G" <email@hidden>
  • Date: Tue, 05 Nov 2002 08:53:34 +0000

What happens when you use stringWithCString? I would have thought that would be just fine...

Terence



From: JONATHANJOSEPH HESS <email@hidden>
To: email@hidden
Subject: Decoding ANSI c string from win32
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.


_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp
_______________________________________________
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.
  • Follow-Ups:
    • Re: Decoding ANSI c string from win32
      • From: JONATHANJOSEPH HESS <email@hidden>
  • Prev by Date: Re: Cocoa really needs to be thread-safe
  • Next by Date: Re: Writing documentation for the help menu item
  • Previous by thread: Decoding ANSI c string from win32
  • Next by thread: Re: Decoding ANSI c string from win32
  • Index(es):
    • Date
    • Thread