From: Art Cancro Date: Mon, 27 Jun 2005 17:38:06 +0000 (+0000) Subject: * HTML pages are now output as "Content-type: text/html; charset=utf-8" X-Git-Tag: v7.86~4813 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=043963b7a2b834ba8825df8426327d25719165ee;p=citadel.git * HTML pages are now output as "Content-type: text/html; charset=utf-8" UTF-8 is going to be the standard character set for the Citadel system. --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 3f804065c..3eb99b086 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 619.13 2005/06/27 17:38:06 ajc +* HTML pages are now output as "Content-type: text/html; charset=utf-8" + UTF-8 is going to be the standard character set for the Citadel system. + Revision 619.12 2005/06/24 19:58:02 ajc * Added a "preferences and settings" screen for each user. * Removed the javascript date output stuff because it's not granular @@ -2654,3 +2658,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/messages.c b/webcit/messages.c index 908a871a0..6a5246ee6 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -1464,7 +1464,7 @@ void post_mime_to_server(void) { serv_printf("--%s", boundary); } - serv_puts("Content-type: text/html"); + serv_puts("Content-type: text/html; charset=utf-8"); serv_puts(""); serv_puts("\n"); text_to_server(bstr("msgtext"), 0); diff --git a/webcit/paging.c b/webcit/paging.c index f05ed31cb..611b38d45 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -270,7 +270,7 @@ void chat_recv(void) { output_headers(0, 0, 0, 0, 0, 0, 0); - wprintf("Content-type: text/html\n"); + wprintf("Content-type: text/html; charset=utf-8\n"); wprintf("\n"); wprintf("\n" "\n" @@ -415,7 +415,7 @@ void chat_send(void) { char buf[SIZ]; output_headers(0, 0, 0, 0, 0, 0, 0); - wprintf("Content-type: text/html\n"); + wprintf("Content-type: text/html; charset=utf-8\n"); wprintf("\n"); wprintf("" "" diff --git a/webcit/roomops.c b/webcit/roomops.c index 69ff9461e..a416dabd9 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -404,7 +404,7 @@ void embed_room_banner(char *got, int navbar_style) { if (navbar_style != navbar_none) { wprintf("
\n" - "\n"); + "
\n"); if (navbar_style == navbar_default) wprintf( diff --git a/webcit/static/chatframeset.html b/webcit/static/chatframeset.html index 3f64b1727..69a1b4283 100644 --- a/webcit/static/chatframeset.html +++ b/webcit/static/chatframeset.html @@ -1,7 +1,7 @@ Real-time chat: <?ROOMNAME> - + diff --git a/webcit/static/empty.html b/webcit/static/empty.html index df87876a5..9249438da 100644 --- a/webcit/static/empty.html +++ b/webcit/static/empty.html @@ -1,7 +1,7 @@ Empty Page - + diff --git a/webcit/static/nocookies.html b/webcit/static/nocookies.html index e42e995e4..d9e8648bf 100644 --- a/webcit/static/nocookies.html +++ b/webcit/static/nocookies.html @@ -1,7 +1,7 @@ Error - + diff --git a/webcit/webcit.c b/webcit/webcit.c index 57ecff156..b6e5e91c0 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -363,7 +363,7 @@ void output_headers( int do_httpheaders, /* 1 = output HTTP headers httpdate(httpnow, time(NULL)); if (do_httpheaders) { - wprintf("Content-type: text/html\r\n" + wprintf("Content-type: text/html; charset=utf-8\r\n" "Server: %s / %s\n" "Connection: close\r\n", SERVER, serv_info.serv_software @@ -455,7 +455,7 @@ void http_redirect(char *whichpage) { wprintf("HTTP/1.0 302 Moved Temporarily\n"); wprintf("Location: %s\r\n", whichpage); wprintf("URI: %s\r\n", whichpage); - wprintf("Content-type: text/html\r\n\r\n"); + wprintf("Content-type: text/html; charset=utf-8\r\n\r\n"); wprintf("\n"); wprintf("you really want to be here now\n", whichpage);