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)
Change History (2)
by , 17 years ago
Attachment: | unicode-dateformat.diff added |
---|
comment:1 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [5267]) unicode: Fixed #4313 -- fixed a problem with unicode strings and datetime
format filters.