[Python-Dev] Encoding detection in the standard library?
g.brandl at gmx.net
Mon Apr 21 19:28:48 CEST 2008
Christian Heimes schrieb:
> David Wolever schrieb:
>> Is there some sort of text encoding detection module is the standard
>> And, if not, is there any reason not to add one?
> You cannot detect the encoding unless it's explicitly defined through a
> header (e.g. the UTF BOM). It's technically impossible. The best you can
> do is an educated guess.
Exactly, and in light of that, I'm -1 for such a standard module.
We've enough issues with modules implementing (apparently) fully
specified standards. :)
More information about the Python-Dev