Commit b405f14f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix rendering message when encoding is defined as "meta charset"

parent 6ca58f7d
......@@ -77,9 +77,11 @@ void WebEnginePartHtmlWriter::end()
if (codecValue.isEmpty()) {
codecValue = QByteArray("UTF-8");
}
stream.setCodec(codecValue.constData());
//qDebug() << " codecValue ******************************************: " << codecValue;
//stream.setCodec("UTF-8");
if (data().contains("<meta charset=\"utf-8\">")) {
codecValue = QByteArray("UTF-8");
}
stream.setCodec(codecValue.constData());
stream << data();
//Bug 387061
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment