Mercurial > repos > IBBoard.WarFoundry.API
changeset 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 | b8b6a1c50023 |
children | a54da5a8b5bb |
files | api/Exporters/WarFoundryHtmlExporter.cs |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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);