[PATCH 5/5] ui-shared: add encoding declaration

Chris Mayo aklhfex at gmail.com
Mon Feb 18 21:46:44 CET 2019


Not required but strongly recommended.

Signed-off-by: Chris Mayo <aklhfex at gmail.com>
---
 ui-shared.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui-shared.c b/ui-shared.c
index d27a5fd..4fb6d8a 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -783,6 +783,7 @@ void cgit_print_docstart(void)
 	html("<title>");
 	html_txt(ctx.page.title);
 	html("</title>\n");
+	htmlf("<meta charset='%s'/>\n", PAGE_ENCODING);
 	htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
 	if (ctx.cfg.robots && *ctx.cfg.robots)
 		htmlf("<meta name='robots' content='%s'/>\n", ctx.cfg.robots);
-- 
2.20.1



More information about the CGit mailing list