Re: NSString really Unicode?
Re: NSString really Unicode?
- Subject: Re: NSString really Unicode?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Thu, 11 Mar 2004 10:31:57 +0100
At 22:16 Uhr -0800 10.03.2004, James J. Merkel wrote:
I am reading a file that has strings of 16-bit Unicode characters.
The low byte of a character is an ASCII character and the high byte
is 0, and the strings are 0 terminated.
You are probably reading in the string data as UTF8 instead of
UTF16. Thus, you get zero-width NULL characters interspersed with
your characters, which just don't display, but confuse intValue. Make
sure you specify the correct encoding.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.