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: JongAm Park <email@hidden>
- Date: Thu, 01 Feb 2007 09:50:34 -0800
Yes. They know about it.
It is introduced here, http://www.mozilla.org/projects/intl/chardet.html
My default setting with the Firefox is to detect character encoding
automatically, and it works quite well for the most case.
They don't forget to give users an option to choose encoding method
manually. So, sometimes if text is not displayed correctly, then users
can choose proper encoding manually. ( Users can try many encoding
method by guessing. :) )
My intention is to provide users automatic detection at first, and let
them to check the text. If the text is not displayed as they expect,
they can change the encoding method manually. So, as its first step, I'm
trying to use "automatic detection".
Thank you.
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.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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