Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2002 closed enhancement (wontfix)

Automatically remove smart-quotes ( cp1252 )

Reported by: Simon Greenhill Owned by: adrian
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 10 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

This is outside the scope of Django.

comment:2 Changed 10 years ago by ubernostrum

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