• 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
Re: UTF8 question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >UTF8 question. (From: "Manish shrikant shet" <email@hidden>)
 >Re: UTF8 question. (From: j o a r <email@hidden>)

  • Prev by Date: Can't edit text in overlay window
  • Next by Date: best practice for sharing NSControllers between window controllers?
  • Previous by thread: Re: UTF8 question.
  • Next by thread: Re: UTF8 question.
  • Index(es):
    • Date
    • Thread