Re: UTF8 question.
Re: UTF8 question.
- Subject: Re: UTF8 question.
- From: Dave Camp <email@hidden>
- Date: Wed, 24 Aug 2005 08:01:34 -0700
On Aug 24, 2005, at 1:15 AM, j o a r wrote:
On 24 aug 2005, at 10.11, Manish shrikant shet wrote:
On Mac I am using the UTF8String method on a NSString object to
get the UTF8 string. On Windows I am using the MultiByteToWideChar
() function to convert a string in the local code page into Unicode.
Are you sure that the "MultiByteToWideChar()" always return
precisely UTF8 encoded strings, and not Unicode strings in some
other encoding?
From a previous Windows port, I want to say it converts to UTF-16,
so I would not expect the byte values to match. A better comparison
might be to have NSString convert to UTF-16 and see if the bytes
match then (taking into account endian issues, of course).
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden