• 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: Tao of string encodings (Re: Converting ASCII to UTF-8?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Tao of string encodings (Re: Converting ASCII to UTF-8?) (From: Jim Rankin <email@hidden>)

  • Prev by Date: setting window style attributes in a nib
  • Next by Date: Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
  • Previous by thread: Tao of string encodings (Re: Converting ASCII to UTF-8?)
  • Next by thread: Re: Tao of string encodings (Re: Converting ASCII to UTF-8?)
  • Index(es):
    • Date
    • Thread