improve charset name comparison

This commit is contained in:
dockes
2005-11-23 10:16:28 +00:00
parent 5b5be0c853
commit 44fb0eb359
3 changed files with 25 additions and 3 deletions
+2 -1
View File
@@ -33,6 +33,7 @@
#include "myhtmlparse.h"
#include "indextext.h"
#include "mh_html.h"
#include "smallut.h"
#include <iostream>
using namespace std;
@@ -101,7 +102,7 @@ MimeHandlerHtml::mkDoc(RclConfig *conf, const string &,
} catch (bool) {
pres = p;
if (!pres.doccharset.empty() &&
pres.doccharset != pres.ocharset) {
!samecharset(pres.doccharset, pres.ocharset)) {
LOGDEB(("textHtmlToDoc: charset '%s' doc charset '%s',"
"reparse\n", charset.c_str(),pres.doccharset.c_str()));
charset = pres.doccharset;