The default encoding should be utf-8. - surf - Surf web browser.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 482a88bd1a2dc89497026927d65c6421b69d909d
(DIR) parent 0dd2fd8db9bd92f31a5ea2dac0ae56b6bf736af8
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 21 Apr 2017 20:41:56 +0200
The default encoding should be utf-8.
Diffstat:
config.def.h | 5 +++--
surf.c | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/config.def.h b/config.def.h
@@ -12,8 +12,9 @@ static Bool showindicators = TRUE; /* Show indicators in window title */
static Bool zoomto96dpi = TRUE; /* Zoom pages to always emulate 96dpi */
static Bool runinfullscreen = FALSE; /* Run in fullscreen mode by default */
-static guint defaultfontsize = 12; /* Default font size */
-static gfloat zoomlevel = 1.0; /* Default zoom level */
+static char *defaultencoding = "utf-8"; /* Default encoding for files. */
+static guint defaultfontsize = 12; /* Default font size */
+static gfloat zoomlevel = 1.0; /* Default zoom level */
/* Soup default features */
static char *cookiefile = "~/.surf/cookies.txt";
(DIR) diff --git a/surf.c b/surf.c
@@ -1091,6 +1091,8 @@ newclient(void)
"default-font-size", defaultfontsize, NULL);
g_object_set(G_OBJECT(settings),
"resizable-text-areas", 1, NULL);
+ g_object_set(G_OBJECT(settings),
+ "default-encoding", defaultencoding, NULL);
if (enablestyle)
setstyle(c, getstyle("about:blank"));