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...
There is no foolproof way of detecting encoding unfortunately - you just need to know what it is before you read the file. Cheers, Doug. -- Telephone: +44 1904 567330, Mobile: +44 7879 423002 Switchboard: +44 1904 567349, Fax: +44 20 79006980 Post: Tower House, Fishergate, York, YO10 4UA, UK Registered in England. Company No 5171172. VAT GB843570325. Regd Office: 3&4 Park Court, Riccall Road, Escrick, York, YO19 6ED _______________________________________________ python-uk mailing list python-uk@python.org http://mail.python.org/mailman/listinfo/python-uk