Re: [Q] What encoding method can be automatically detected?
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