Max M wrote:
A smiple way to try out different encodings in a given order:

The loop is fine - although ('UTF-8', 'Latin-1', 'ASCII') is somewhat redundant. The 'ASCII' case is never considered, since Latin-1 effectively works as a catch-all encoding (as all byte sequences can be considered Latin-1 - whether they are meaningful data is a different question).

Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to