defrex/django-encrypted-fields

Bug with unicode

whncode opened this issue · 2 comments

There is bug in keychar, when you try decrypt unicode (you get empty string). I'm bypased it by adding:

value = value.encode('unicode_escape') in get_prep_value. And in to python: value.decode('unicode_escape').

I just pushed a fix for this. Let me know if you have any issues with it.

Thanks, works perfect!