|
a/src/internfile/mh_html.cpp |
|
b/src/internfile/mh_html.cpp |
|
... |
|
... |
129 |
m_html = transcoded;
|
129 |
m_html = transcoded;
|
130 |
// In many cases, we need to change the charset decl,
|
130 |
// In many cases, we need to change the charset decl,
|
131 |
// because the file was transcoded. It seems that just
|
131 |
// because the file was transcoded. It seems that just
|
132 |
// inserting one is enough (only the 1st one seems to
|
132 |
// inserting one is enough (only the 1st one seems to
|
133 |
// be used by browsers/qtextedit).
|
133 |
// be used by browsers/qtextedit).
|
134 |
unsigned int idx = m_html.find("<head>");
|
134 |
string::size_type idx = m_html.find("<head>");
|
135 |
if (idx == string::npos)
|
135 |
if (idx == string::npos)
|
136 |
idx = m_html.find("<HEAD>");
|
136 |
idx = m_html.find("<HEAD>");
|
137 |
if (idx != string::npos)
|
137 |
if (idx != string::npos)
|
138 |
m_html.replace(idx+6, 0,
|
138 |
m_html.replace(idx+6, 0,
|
139 |
"<meta http-equiv=\"content-type\" "
|
139 |
"<meta http-equiv=\"content-type\" "
|