summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/application.cpp b/src/application.cpp
index a49e1d80..9702c139 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -58,6 +58,8 @@
#include <ThreadWeaver/Weaver>
#include <KAction>
#include <KWindowSystem>
+#include <KGlobal>
+#include <KCharsets>
// Qt Includes
#include <QVBoxLayout>
@@ -491,6 +493,9 @@ void Application::updateConfiguration()
defaultSettings->setFontSize(QWebSettings::DefaultFontSize, qRound(defaultFontSize * toPix) );
defaultSettings->setFontSize(QWebSettings::MinimumFontSize, qRound(minimumFontSize * toPix) );
+ // encodings
+ QString enc = ReKonfig::defaultEncoding();
+ defaultSettings->setDefaultTextEncoding(enc);
// ================ WebKit ============================
defaultSettings->setAttribute(QWebSettings::AutoLoadImages, ReKonfig::autoLoadImages());