Scott David Daniels wrote: ...
If you now, and for all time, decide that the only source you will take is cp1252, perhaps you should decode to cp1252 before hashing.
Of course my dyslexia sticks out here as I get encode and decode exactly backwards -- Marc 'BlackJack' Rintsch has it right. Characters (a concept) are "encoded" to a byte format (representation). Bytes (a precise representation) are "decoded" to characters (a format with semantics). --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list