• 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
Is there any support in Cocoa for stupidly encoded UTF-8 string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there any support in Cocoa for stupidly encoded UTF-8 string?


  • Subject: Is there any support in Cocoa for stupidly encoded UTF-8 string?
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 20 Jan 2005 18:26:33 +0100

In some e-mail subjects, people are using what is supposed to be UTF-8 encoded and is actually poor Unicode encoded.

For instance, instead of 0xC3A9 for eacute, you end up with 0xE9 (where it should be 0x00E9).

When you use NSString initWithBytes:length:encoding with the UTF-8 encoding as the paramter, you obtain nil. I understand this.

Now, the question is: is there a method in Cocoa to deal with stupidly encoded UTF-8 string?

_______________________________________________
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


  • Follow-Ups:
    • Re: Is there any support in Cocoa for stupidly encoded UTF-8 string?
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Authorization without permanent setuid on helper
  • Next by Date: Re: NSTask output and input - Related question
  • Previous by thread: Re: Creating Cocoa Windows from Command Line Apps
  • Next by thread: Re: Is there any support in Cocoa for stupidly encoded UTF-8 string?
  • Index(es):
    • Date
    • Thread