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: 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