content="text/html; charset=UTF-8"
And contains text like:
There’s the Côte d’
Ideally, we would decode ’ into ’ and ô into ô.
Unfortunately, #146 is really an error -- it's not a utf-8 encoded unicode character but really a MS codepage 1252 character for apostrophe (apparently may HTML editing systems intermingle unicode and codepage 1252 content for apostrophes and a few other common characters).
I'm happy to contribute some additional code for these other cases if people agree it's useful.
At 11:56 PM -0400 5/10/08, Fred Drake wrote:On May 10, 2008, at 11:49 PM, Guido van Rossum wrote:Works for me. The other thing I always use from cgi is escape() --will that be available somewhere else too?xml.sax.saxutils.escape() would be an appropriate replacement, thoughthe location is a little funky.
At least it's right next to the valuable quoteattr().
--
____________________________________________________________________
TonyN.:' <mailto:tonynelson@georgeanelson.com>
' <http://www.georgeanelson.com/>
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/thomaspinckney3%40gmail.com