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 _______________________________________________ python-uk mailing list python-uk@python.org http://mail.python.org/mailman/listinfo/python-uk