add utf-8 support

This commit is contained in:
makefu 2013-11-19 18:10:37 +01:00
parent 3f1714ab7d
commit 498703cb18

View file

@ -72,7 +72,7 @@ def store(key, value):
f.write(bytes(value, "UTF-8"))
except:
# py2
f.write(value)
f.write(value.encode("UTF-8"))
def retrieve(key):