fix unicode decode error.
This commit is contained in:
parent
d522bacef0
commit
19f3133e92
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user