From 74eb54b5b79f39b7e27f8a94c2a1425586e5353e Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 12 Aug 2009 15:59:01 +0200 Subject: 575875 don't output charset=html * HTMLtree.c: don't output charset=html in htmlSetMetaEncoding() as this is clearly a libxml2 only thingused for import only --- HTMLtree.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'HTMLtree.c') diff --git a/HTMLtree.c b/HTMLtree.c index 37999f79..d55ff286 100644 --- a/HTMLtree.c +++ b/HTMLtree.c @@ -168,6 +168,10 @@ htmlSetMetaEncoding(htmlDocPtr doc, const xmlChar *encoding) { if (doc == NULL) return(-1); + /* html isn't a real encoding it's just libxml2 way to get entities */ + if (!xmlStrcasecmp(encoding, BAD_CAST "html")) + return(-1); + if (encoding != NULL) { snprintf(newcontent, sizeof(newcontent), "text/html; charset=%s", (char *)encoding); -- cgit v1.2.3