Re: NSString really Unicode?
Re: NSString really Unicode?
- Subject: Re: NSString really Unicode?
- From: "James J. Merkel" <email@hidden>
- Date: Thu, 11 Mar 2004 19:45:40 -0800
Except, which encoding should be used? I have tried several, and
intvalue doesn't seem to work with any of them.
Jim Merkel
On Mar 11, 2004, at 1:31 AM, M. Uli Kusterer wrote:
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.