summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gehad <gehadelrobey@gmail.com>2014-04-05 12:34:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-05 07:46:45 -0700
commitd6af09b26956d127d35454cfa42c2ff78402d6f2 (patch)
tree2ef9fe5209205baef0474c109d5b74a0b618a69d
parenta6fcd4f99f22342da67dadb149d66f3f4ecec061 (diff)
downloadsubsurface-d6af09b26956d127d35454cfa42c2ff78402d6f2.tar.gz
Set the world-map HTML charset to UTF-8
The exported HTML was missing the UTF-8 encoding, so non ascii characters weren't displayed correctly, This patch makes the exporter support all the unicode characters. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--worldmap-save.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/worldmap-save.c b/worldmap-save.c
index c193d72c1..0c40bc30f 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)