• 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: Douglas Davidson <email@hidden>
  • Date: Thu, 1 Feb 2007 09:43:30 -0800


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

On Feb 1, 2007, at 11:56 AM, JongAm Park wrote:

At home, I made my iMac compile the Firefox. Within the firefox source code, there is a chardet library which detects character encoding used for a given string. Because it depends on statistics, it would give back more accurate result if the string is long enough.
Because I work with some text files, it should be OK.

It's worth pointing out that FireFox developers also explicitly recognize that this function is essentially a guess, and provide the "view/encoding" menu item to allow the user to choose an encoding manually when the function guesses wrong.

I second what Sherm said, and let me also say that if you have any control over the creation of these files, I must strongly recommend the use of a Unicode-based encoding, preferably UTF-8 or UTF-16.


Douglas Davidson

_______________________________________________

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: Ricky Sharp <email@hidden>)
 >Re: [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: NSString encoding and perl script encoding
  • 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