Mercurial > hg > batmud > maputils
changeset 915:066fed52348d
Change from ISO-8859-1 to UTF-8, use XML-compatible entities for scandinavian characters.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 23 Apr 2010 23:53:17 +0000 |
parents | 570524776a68 |
children | 51fe97e83115 |
files | maputils.c |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/maputils.c Fri Apr 23 15:36:26 2010 +0000 +++ b/maputils.c Fri Apr 23 23:53:17 2010 +0000 @@ -116,13 +116,14 @@ static const html_entity_t HTMLEntities[] = { { '&', "amp" }, - { 'ä', "auml" }, - { 'ö', "ouml" }, - { 'Ä', "Auml" }, - { 'Ö', "Ouml" }, { '<', "lt" }, { '>', "gt" }, { '"', "quot" }, + + { 'ä', "#228" }, + { 'ö', "#246" }, + { 'Ä', "#196" }, + { 'Ö', "#214" }, }; static const int numHTMLEntities = (sizeof(HTMLEntities) / sizeof(HTMLEntities[0])); @@ -276,7 +277,7 @@ void mcXHTMLhead(FILE *outFile, char *title) { - static const char *strCharSet = "iso-8859-1"; + static const char *strCharSet = "utf-8"; assert(outFile != NULL); /* Output XHTML header */