[issue2948] Unicode support for hashing algorithms

2008-05-22 Thread Vasco Rodrigues
Changes by Vasco Rodrigues <[EMAIL PROTECTED]>: -- versions: +Python 2.4, Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2948> __ __

[issue2948] Unicode support for hashing algorithms

2008-05-22 Thread Vasco Rodrigues
Vasco Rodrigues <[EMAIL PROTECTED]> added the comment: You could just make a check for unicode strings and issue the encode in the hash function. I understand the byte abstraction, but if you issue an encode on a unicode string with only ascii chars it gets converted to the same in ascii,

[issue2948] Unicode support for hashing algorithms

2008-05-22 Thread Vasco Rodrigues
New submission from Vasco Rodrigues <[EMAIL PROTECTED]>: The hashing algorithms don't support Unicode. Any Unicode text given to them is first tried to convert ascii and then hashed. Not all strings are convertible to ascii. Now that Unicode is becoming the default encoding, specia