From 19f3133e92a5f481d4afa9a6babde65477a8c411 Mon Sep 17 00:00:00 2001 From: Bayarkhuu Bataa Date: Tue, 11 Jun 2019 10:15:37 +0800 Subject: [PATCH] fix unicode decode error. --- zk/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk/user.py b/zk/user.py index 8c7da46..10a6bfe 100644 --- a/zk/user.py +++ b/zk/user.py @@ -5,7 +5,7 @@ class User(object): def __init__(self, uid, name, privilege, password='', group_id='', user_id='', card=0): self.uid = uid - self.name = str(name) + self.name = u'{0}'.format(name) self.privilege = privilege self.password = str(password) self.group_id = str(group_id)