Mercurial > p > roundup > code
changeset 3664:119397fdbdfd
handle unicode in query names [SF#1495702]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Aug 2006 01:24:17 +0000 |
| parents | 8d5c34204a86 |
| children | 48d891bf9623 |
| files | CHANGES.txt roundup/cgi/templating.py |
| diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Fri Aug 11 01:03:50 2006 +0000 +++ b/CHANGES.txt Fri Aug 11 01:24:17 2006 +0000 @@ -26,6 +26,7 @@ - nicer listing of Superseder links (sf non-patch 1497767) - include roundup-server.ini.example (sf bug 1493859) - dumb bug in cgi templating utils (sf bug 1490176) +- handle unicode in query names (sf bug 1495702) 2006-04-27 1.1.2
--- a/roundup/cgi/templating.py Fri Aug 11 01:03:50 2006 +0000 +++ b/roundup/cgi/templating.py Fri Aug 11 01:24:17 2006 +0000 @@ -2209,7 +2209,12 @@ # dispname self.dispname = None if self.form.has_key('@dispname'): - self.dispname = self.form['@dispname'].value + value = self.form['@dispname'].value + # dispname should be encoded to the web interface's charset, + # but the web interface rendering will be expecting a unicode + # string + charset = self.client.charset + self.dispname = value.decode('utf8') def updateFromURL(self, url): ''' Parse the URL for query args, and update my attributes using the
