Opened 17 years ago

Closed 17 years ago

#4313 closed (fixed)

unicode-branch - date and time filters doesn't work with non-ascii string

Reported by: anonymous Owned by: Malcolm Tredinnick
Component: Internationalization Version: other branch
Severity: Keywords: unicode-branch, filters
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

UnicodeEncodeError is thrown if an datetime filter is used with non-ascii string. This problem can be solved by the attached patch.

Simple test:

setting.py:
LANGUAGE_CODE = 'cs'

template:
{% now "F" %}

Attachments (1)

unicode-dateformat.diff (850 bytes ) - added by anonymous 17 years ago.

Download all attachments as: .zip

Change History (2)

by anonymous, 17 years ago

Attachment: unicode-dateformat.diff added

comment:1 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [5267]) unicode: Fixed #4313 -- fixed a problem with unicode strings and datetime
format filters.

Note: See TracTickets for help on using tickets.
Back to Top