wchar_t and NSString
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.