1. Jason Moiron
  2. johnny-cache
Issue #2 resolved

Unicode problems with hashlib

Lau Bech Lauritzen
created an issue

Hi, I'm using johnny-cache in a project where the DB2 database has non-ascii characters in table and column names. This results in hashlib barfing when feeding it with a unicode SQL string (default encoding is ascii which is no good).

The solution is quite simple, encode the unicode string before feeding it to hashlib. Patch attached.

Comments (1)

  1. Log in to comment