[New-bugs-announce] [issue2948] Unicode support for hashing algorithms

Vasco Rodrigues report at bugs.python.org
Fri May 23 05:22:51 CEST 2008

New submission from Vasco Rodrigues <a29192 at ualg.pt>:

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, specially for the web
side of python, where a lot of this hashing algorithms are used.
There should be some kind of Unicode support in them.

from hashlib import md5
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in
position 2: ordinal not in range(128)

components: Unicode
messages: 67214
nosy: vvro
severity: normal
status: open
title: Unicode support for hashing algorithms
versions: Python 2.5

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list