Django

Code

Ticket #4749 (closed: duplicate)

Opened 1 year ago

Last modified 1 year ago

Title filter error with non us-ascii chars

Reported by: marc.garcia@accopensys.com Assigned to: adrian
Milestone: Component: Template system
Version: SVN Keywords: filter title character set unicode-branch
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

When applying title filter to a word with non us-ascii characters, wrong results are returned. Upper case is set after this characters inside the word.

For example, {% filter title %}discothèque{% endfilter %} returns DiscothèQue expected Discothèque

Attachments

defaultfilters.py.diff (448 bytes) - added by marc.garcia@accopensys.com on 07/03/07 05:11:32.
Possible fix to this bug (to be reviewed)

Change History

07/03/07 05:11:32 changed by marc.garcia@accopensys.com

  • attachment defaultfilters.py.diff added.

Possible fix to this bug (to be reviewed)

07/03/07 07:35:24 changed by mtredinnick

(In [5591]) unicode: Added a test to ensure that we title-case non-ASCII strings properly. Refs #4749.

07/03/07 07:37:13 changed by mtredinnick

  • keywords changed from filter title character set to filter title character set unicode-branch.
  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

There are lots of little problems like this with non-ASCII data on trunk at the moment and we're working on fixing things holistically rather than with individual changes (on the Unicode branch). This is already handled properly in the Unicode branch, so I'll close this ticket once that branch is merged into trunk.

07/03/07 08:29:16 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to duplicate.

Turns out this is a dupe of #2391 and that's already on the to-close list after the merge.


Add/Change #4749 (Title filter error with non us-ascii chars)




Change Properties
Action