Opened 18 years ago

Closed 18 years ago

Last modified 18 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: no UI/UX: no

Description

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 http://chardet.feedparser.org/, 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 by Adrian Holovaty, 18 years ago

Resolution: wontfix
Status: newclosed

This is outside the scope of Django.

comment:2 by James Bennett, 18 years ago

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