Re: mb_detect_encoding mb_convert_encoding and rss
| From: | Tony Laszlo | Date: | Fri, 07 Feb 2003 09:29:27 +0000 |
| Subject: | Re: mb_detect_encoding mb_convert_encoding and rss | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-440@lists.php.net to get a copy of this message | ||
On Sat, 1 Feb 2003, Moriyoshi Koizumi wrote:
> > (as you can see from the top page here:
> > http://www.issho.org/ , pretty much every language - and
> > encoding - out there, needs to be supported).
> >
> > a way to wildcard it would be preferred. :)
> > Is there not such a way?
>
> Since encoding detection is essentially heuristic and thus its
> accuracy depends on the number of likely candidates given in the first
> place, there is no way to guess a right encoding out of any possible
> encodings from limited length of strings.
Thank you.
Some people are apparently using the Encode::HanDetect perl module to
guess the encoding the feed based on statistical heuristics.
Too imperfect to try, or something that can be done with perl
but not with php?
--
Tony Laszlo
http://www.issho.org/modules.php?op=modload&name=phpWiki&file=index&pagename=LaszloBlog
(going for the record: blog with the longest URL)