Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2002 closed enhancement (wontfix)

Automatically remove smart-quotes ( cp1252 )

Reported by: Simon Greenhill Owned by: Adrian Holovaty
Component: Validators Version:
Severity: normal Keywords:
Cc: dev@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Wouldn't it be wonderful if Django automatically FIXED the "smart" quotes injected by various Windows/OSX apps? Not sure if this is possible without trying to work out what char. encoding the website wants, but maybe this can be done by the validator framework?

There's a Universal Encoding Detector in python at, or it might be possible to just search'n'replace \x91, \x92 (single left&right quotes), \x93, \x94 (double left&right quotes), \x96 & \x97 ( emdashes ) and \x85 ( ellipsis ).

Change History (2)

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

This is outside the scope of Django.

comment:2 Changed 12 years ago by James Bennett

Also, it wouldn't be hard to call the encoding detector and do the replacement yourself in a custom save() method on your models.

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