• 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
wchar_t and NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wchar_t and NSString


  • Subject: wchar_t and NSString
  • From: Don Swatman <email@hidden>
  • Date: Tue, 14 Oct 2003 12:20:39 +0100

Hi All,
I'm using some internal cross platform libraries that use wstring and wchar_t to store string data. Trouble is on a Mac these are all stored as 4 byte unicode data. As far as I can see the unicode functions for NSString all expect 2 byte. This leaves me with having to strip or pad data before putting it in the NSStrings for display.
So is there any way of putting and getting the NSString data as 4 byte?
Also anyone know how safe it "ignore" the top two bytes? I don't think it affects too much as it's the more obscure character set code pages - but I'm not sure.


Thanks,

Don.
_______________________________________________
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: wchar_t and NSString
      • From: Clark Cox <email@hidden>
    • Re: wchar_t and NSString
      • From: Wade Tregaskis <email@hidden>
  • Prev by Date: Re: how to warn users of wrong system
  • Next by Date: Re: wchar_t and NSString
  • Previous by thread: Comments requested - Tab/Button opening time for a Drop
  • Next by thread: Re: wchar_t and NSString
  • Index(es):
    • Date
    • Thread