From 24d8fbf7f21367a6fba72ab57624153b969d6bad Mon Sep 17 00:00:00 2001 From: dockes Date: Tue, 13 Oct 2009 16:37:41 +0000 Subject: [PATCH] comments --- src/internfile/mh_exec.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/internfile/mh_exec.cpp b/src/internfile/mh_exec.cpp index 13da9ebf..c2ba79d2 100644 --- a/src/internfile/mh_exec.cpp +++ b/src/internfile/mh_exec.cpp @@ -142,11 +142,12 @@ bool MimeHandlerExec::next_document() return true; } - void MimeHandlerExec::finaldetails() { string& output = m_metaData["content"]; - // if output is text/plain (not text/html), we must convert it to utf-8 + + // if output is text/plain (not text/html), we may have to convert + // it to utf-8. cfgCharset comes from the mimeconf filter definition line string charset = cfgCharset.empty() ? "utf-8" : cfgCharset; string mt = cfgMtype.empty() ? "text/html" : cfgMtype; if (!mt.compare("text/plain") && charset.compare("utf-8")) { @@ -166,7 +167,7 @@ void MimeHandlerExec::finaldetails() // Success. Store some external metadata m_metaData["origcharset"] = m_defcharset; // Default charset: all recoll filters output utf-8, but this - // could still be overridden by the content-type meta tag. + // could still be overridden by the content-type meta tag for html m_metaData["charset"] = charset; m_metaData["mimetype"] = mt;