diff api/Exporters/WarFoundryHtmlExporter.cs @ 251:22509bd03ca2

Re #273: Problems with accented characters and HTML output * Add UTF-8 charset to HTML output (untested because of other local changes that break things)
author IBBoard <dev@ibboard.co.uk>
date Fri, 23 Apr 2010 20:00:06 +0000
parents ec7fe85116cf
children b9b8b0e60c31
line wrap: on
line diff
--- a/api/Exporters/WarFoundryHtmlExporter.cs	Wed Mar 31 20:02:57 2010 +0000
+++ b/api/Exporters/WarFoundryHtmlExporter.cs	Fri Apr 23 20:00:06 2010 +0000
@@ -51,6 +51,10 @@
 			XmlElement title = doc.CreateElement("title");
 			title.InnerXml = army.Name;
 			head.AppendChild(title);
+			XmlElement metaCharset = doc.CreateElement("meta");
+			metaCharset.SetAttribute("http-equiv", "Content-Type");
+			metaCharset.SetAttribute("content", "text/html;charset=UTF-8");
+			head.AppendChild(metaCharset);
 			XmlElement style = doc.CreateElement("style");
 			style.InnerText = "table, th, td { border: 1px solid #000 }";
 			head.AppendChild(style);