about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--xxxterm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 5da6079..4f18a34 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -8580,6 +8580,8 @@ create_browser(struct tab *t)
 	/* set defaults */
 	t->settings = webkit_web_settings_new();
 
+	g_object_set(t->settings, "default-encoding", encoding, (char *)NULL);
+
 	if (user_agent == NULL) {
 		g_object_get(G_OBJECT(t->settings), "user-agent", &strval,
 		    (char *)NULL);
@@ -10321,9 +10323,6 @@ main(int argc, char *argv[])
 			    (void *)NULL);
 	}
 
-	/* set default encoding */
-	g_object_set(session, "default-encoding", encoding, (char *)NULL);
-
 	/* guess_search regex */
 	if (url_regex == NULL)
 		url_regex = g_strdup(XT_URL_REGEX);