[python-uk] Tell us what you did with Python this year....

Nick Murdoch nick at nivan.net
Mon Dec 20 18:07:23 CET 2010


On Mon, Dec 20, 2010 at 04:58:07PM +0000, Alec Battles wrote:
> 
> I seem to remember that 'file' in Linux detects encodings, but it's
> also a matter of calling it by the exact same name...
> 

Any encoding detection will be heuristics; I've personally found the chardet library really useful when I'm stuck with a file that nobody knows the encoding of :)

http://chardet.feedparser.org/

Cheers,

Nick



More information about the python-uk mailing list