Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
- Subject: Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
- From: Ondra Cada <email@hidden>
- Date: Wed, 31 Mar 2004 00:28:05 +0200
Jim,
On Tuesday, Mar 30, 2004, at 23:49 Europe/Prague, Jim Rankin wrote:
Your program is handled a file path or url that's ostensibly a text
file. From that point, how do you know the encoding of what you've
just been handed?
Probably missing something obvious...
Yeah -- that you just don't know (unless it's a HTML or XML with a
specified charset).
The way to do that is to let the user decide. You may create a number
of heuristics (some of which, e.g., those exploiting the spellchecker,
may be pretty good), but still there would be a non-trivial probability
of an error.
---
Ondra Hada
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.