From 9b5437b82b49e2518408a783c5203865cce001ea Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Sat, 8 Jul 2023 13:26:11 +0800 Subject: [PATCH] fix: website encoding problem --- src/iframeschemehandler.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/iframeschemehandler.cc b/src/iframeschemehandler.cc index ed11fe50..9997f98e 100644 --- a/src/iframeschemehandler.cc +++ b/src/iframeschemehandler.cc @@ -92,12 +92,7 @@ void IframeSchemeHandler::requestStarted(QWebEngineUrlRequestJob *requestJob) buffer->setData(articleString.toUtf8()); - //"text/html;charset=utf-8" will be treated as text/plain in Linux . -#if defined( Q_OS_WIN32 ) || defined( Q_OS_MAC ) - requestJob->reply( contentType, buffer ); -#else - requestJob->reply( "text/html", buffer ); -#endif + requestJob->reply( "text/html; charset=utf-8", buffer ); }; connect( reply, &QNetworkReply::finished, requestJob, finishAction );