Re: Data to String: what encoding?
Re: Data to String: what encoding?
- Subject: Re: Data to String: what encoding?
- From: Ondra Cada <email@hidden>
- Date: Sun, 15 Sep 2002 21:53:33 +0200
On Sunday, September 15, 2002, at 09:38 , Douglas Davidson wrote:
It is impossible in principle to determine the encoding used for an
arbitrary file. If the file contains sufficient amounts of
natural-language text, then a human reader can usually determine the
intended encoding, but it is easy to produce files for which many
different encodings might have been used. Any method of the sort you
propose would be no more than a reasonable guess.
Well, if the text is not entirely trivial and if there is a spellchecker,
you can guess with a pretty low probability of a miss.
That is, of course, not a contradiction of what you written -- for special
cases, there should *always* be a way for the user to force the encoding
manually, for case the heuristics guessed wrong.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.