Project

General

Profile

Bug #817

TemplateParser's "url" function is not Unicode safe

Added by Elmer de Looff over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Elmer de Looff
Category:
TemplateParser
Target version:
Start date:
2012-05-15
Due date:
% Done:

100%

Estimated time:
Spent time:

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

Revision 231:e683d8b3a012 (diff)
Added by Elmer de Looff over 12 years ago

TemplateParser will encode unicode objects to UTF8 before url-quoting them. This resolves #817.

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.

Also available in: Atom PDF