#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 , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 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.
This is outside the scope of Django.