md5.hexdigest() converting unicode string to ascii

Fredrik Lundh fredrik at pythonware.com
Fri Apr 16 08:07:58 EDT 2004


Krzysztof Stachlewski wrote:

> The md5() function is defined on character strings
> not on unicode strings. An unicode string is a sequence
> of integers. Such sequence may be converted to a character
> string

message.replace("character", "byte")

(unicode characters are characters too, you know...)

</F>







More information about the Python-list mailing list