Modify ↓
#2327 closed defect (fixed)
Encoding errors with htdigest and unicode
Reported by: | anonymous | Owned by: | Matt Good |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Attachments (0)
Change History (6)
comment:1 Changed 16 years ago by
Trac Release: | 0.10 → 0.11 |
---|---|
Type: | defect → enhancement |
comment:2 Changed 16 years ago by
the password file is written in UTF-8 but is read in ASCII, so it do not support UTF-8 username.
my quick solution to read the password file with utf-8 username
change site-packages\tracaccountmanager-0.2.1dev_r4679-py2.5.egg\acct_mgr\htfile.py def prefix(self, user): realm = self.realm realm = realm.encode('utf-8') user = user + ':' user = user + realm user = user + ':' return user # print "realm:" + realm # print "user:" + user # return '%s:%s:' % (user, self.realm)
but still can not register/modify utf-8 username(will clear all the user account). I think file operation code needs to be rewritten.
comment:4 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 Changed 16 years ago by
Summary: | The chinese encoding is not support on Add Acount User → Encoding errors with htdigest and unicode |
---|
Note: See
TracTickets for help on using
tickets.
I also have this problem.