The attached patch fixes the character set encoding of the exported HTML,
To be able to support multi-languages.

--
Regards,
Gehad Elrobey

>From 72e04d14f5eb457fb271a9ac0a5a2fa8115ef710 Mon Sep 17 00:00:00 2001
From: Gehad elrobey <[email protected]>
Date: Sat, 5 Apr 2014 12:17:39 +0200
Subject: [PATCH] defining the world-map HTML charset to UTF-8

The exported HTML was missing the UTF-8 encoding, so non ascii
characters wasn't displayed correctly, This patch makes the exporter
support all the unicode characters.

Signed-off-by: Gehad elrobey <[email protected]>
---
 worldmap-save.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/worldmap-save.c b/worldmap-save.c
index c193d72..0c40bc3 100644
--- a/worldmap-save.c
+++ b/worldmap-save.c
@@ -112,6 +112,7 @@ void insert_html_header(struct membuffer *b)
 {
 	put_string(b, "<!DOCTYPE html>\n<html>\n<head>\n");
 	put_string(b, "<meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\" />\n<title>World Map</title>\n");
+	put_string(b, "<meta charset=\"UTF-8\">");
 }
 
 void insert_css(struct membuffer *b)
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to