diff --git a/iframeschemehandler.cpp b/iframeschemehandler.cpp index db910219..5b71968d 100644 --- a/iframeschemehandler.cpp +++ b/iframeschemehandler.cpp @@ -98,7 +98,12 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) else buffer->setData(articleString.toUtf8()); + #ifdef Q_OS_WIN32 + requestJob->reply(contentTypeV.toByteArray() , buffer ); + #else + //use "text/html;charset=utf-8" will make the response html text rendered on the webpage? requestJob->reply(contentType , buffer ); + #endif }; connect( reply, &QNetworkReply::finished, requestJob, finishAction );