Automatically remove smart-quotes ( cp1252 )
|Reported by:||Simon Greenhill||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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 ).