• 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: [Q] What encoding method can be automatically detected?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] What encoding method can be automatically detected?


  • Subject: Re: [Q] What encoding method can be automatically detected?
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 1 Feb 2007 10:03:27 -0700


On Feb 1, 2007, at 9:13 AM, Sherm Pendley wrote:

What this method cannot do is distinguish among other 8-bit encodings, such as UTF-8 with no BOM, Mac Roman, ISO-8859-1, etc. There are no distinguishing characteristics that would allow those to be detected automatically.

NSAttributedString has a heuristic text loader method, - initWithData:options:documentAttributes:error:, that seems to work most of the time.


Nick Zitzmann
<http://www.chronosnet.com/>




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >[Q] What encoding method can be automatically detected? (From: JongAm Park <email@hidden>)
 >Re: [Q] What encoding method can be automatically detected? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: [Q] What encoding method can be automatically detected?
  • Next by Date: Re: [Q] What encoding method can be automatically detected?
  • Previous by thread: Re: [Q] What encoding method can be automatically detected?
  • Next by thread: Re: [Q] What encoding method can be automatically detected?
  • Index(es):
    • Date
    • Thread