Bug #817
TemplateParser's "url" function is not Unicode safe
Status:
Closed
Priority:
Normal
Assignee:
Elmer de Looff
Category:
TemplateParser
Target version:
Description
When the "url" template function is given a piece of unicode to work on, it fails. This is because urllib.quote_plus
itself is not capable of handling raw Unicode codepoints.
Convert to UTF8 before escaping.
Associated revisions
History
#1 Updated by Elmer de Looff over 12 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 70
Applied in changeset e683d8b3a012.
#2 Updated by Elmer de Looff over 12 years ago
- Status changed from Resolved to Closed
- % Done changed from 70 to 100
This has been verified to work.
TemplateParser will encode unicode objects to UTF8 before url-quoting them. This resolves #817.