|
a/src/internfile/mh_html.cpp |
|
b/src/internfile/mh_html.cpp |
|
... |
|
... |
75 |
charset.c_str()));
|
75 |
charset.c_str()));
|
76 |
// Override default input charset if someone took care to set one:
|
76 |
// Override default input charset if someone took care to set one:
|
77 |
map<string,string>::const_iterator it = m_metaData.find(cstr_charset);
|
77 |
map<string,string>::const_iterator it = m_metaData.find(cstr_charset);
|
78 |
if (it != m_metaData.end() && !it->second.empty()) {
|
78 |
if (it != m_metaData.end() && !it->second.empty()) {
|
79 |
charset = it->second;
|
79 |
charset = it->second;
|
80 |
LOGDEB(("MHHtml: next_doc.: input charset from metadata: [%s]\n",
|
80 |
LOGDEB(("MHHtml: next_doc.: input charset from ext. metadata: [%s]\n",
|
81 |
charset.c_str()));
|
81 |
charset.c_str()));
|
82 |
}
|
82 |
}
|
83 |
|
83 |
|
84 |
// - We first try to convert from the supposed charset
|
84 |
// - We first try to convert from the supposed charset
|
85 |
// (which may depend of the current directory) to utf-8. If this
|
85 |
// (which may depend of the current directory) to utf-8. If this
|