#2391 closed defect (fixed)
title case not handling UTF8 correctly
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | |
Severity: | normal | Keywords: | unicode-branch |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
Since Django is basically a UTF8 based platform, it should perfom .title() on utf-8 strings. It assumes unicode. I think this diff fixes the problem.
Attachments (1)
Change History (7)
Changed 17 years ago by
Attachment: | titlecase.diff added |
---|
comment:1 Changed 17 years ago by
comment:2 Changed 16 years ago by
Has patch: | set |
---|---|
Needs tests: | set |
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
please modify this patch and use settings.DATABASE_ENCODING instead of utf8. If possible, please add a test case.
comment:3 Changed 16 years ago by
As far as I can thell there is no such thing as settings.DATABASE_ENCODING would DEFAULT_CHARSET not be better?
comment:4 Changed 16 years ago by
Keywords: | unicode-branch added |
---|
This patch is no longer relevant in light of the UnicodeBranch. The problem has been fixed on that branch. I'll close it when the branch is merged.
(to answer your question, for curiosity's sake: yes.)
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This patch assumes utf-8 encoding, which isn't safe to assume.