* HTML pages are now output as "Content-type: text/html; charset=utf-8"
authorArt Cancro <ajc@citadel.org>
Mon, 27 Jun 2005 17:38:06 +0000 (17:38 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 27 Jun 2005 17:38:06 +0000 (17:38 +0000)
  UTF-8 is going to be the standard character set for the Citadel system.

webcit/ChangeLog
webcit/messages.c
webcit/paging.c
webcit/roomops.c
webcit/static/chatframeset.html
webcit/static/empty.html
webcit/static/nocookies.html
webcit/webcit.c

index 3f804065c956c94cd3d9941b0cae155f4b21dbd6..3eb99b0860bcd9689f9fb6e099d7fca0ca0578d0 100644 (file)
@@ -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 <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 908a871a08ce8e20873df8d294abf73114a116c8..6a5246ee6581bef38eae4b397ee6b4c4ccf5d25b 100644 (file)
@@ -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("<HTML><BODY>\n");
        text_to_server(bstr("msgtext"), 0);
index f05ed31cb7f8f61688a10cb00646c9e719008af0..611b38d45bf8503baeafa89f177d272966b4f3de 100644 (file)
@@ -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("<html>\n"
                "<head>\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("<HTML>"
                "<BODY onLoad=\"document.chatsendform.send_this.focus();\" >"
index 69ff9461e090913e9df48b4efa82e07fd74ad06f..a416dabd9192b2ce9f5ec2089fbc3138530d4100 100644 (file)
@@ -404,7 +404,7 @@ void embed_room_banner(char *got, int navbar_style) {
        if (navbar_style != navbar_none) {
 
                wprintf("<div style=\"position:absolute; bottom:0px; left:0px\">\n"
-                       "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%%\"><tr>\n");
+                       "<table width=\"100%%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>\n");
 
 
                if (navbar_style == navbar_default) wprintf(
index 3f64b172744520e41b796f9f76e67174899f935c..69a1b4283f852d6f4ef2d5246ded8c31b401863c 100644 (file)
@@ -1,7 +1,7 @@
 <html>
 <head>
        <title>Real-time chat: <?ROOMNAME></title>
-       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Language" content="en" />
 </head>
 
index df87876a5569d75f88967be17a5f8de58a621c10..9249438da02a466dd712fe50a4b93753b1ccd803 100644 (file)
@@ -1,7 +1,7 @@
 <html>
 <head>
        <title>Empty Page</title>
-       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 </head>
 <body>
 </body>
index e42e995e4d025d1c8375202a4765f57f28ecbc06..d9e8648bfc373e759f08560a5314b3988dda531e 100644 (file)
@@ -1,7 +1,7 @@
 <html>
 <head>
        <title>Error</title>
-       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Language" content="en" />
 </head>
 <body>
index 57ecff156676d27dd4cec4f87f45b455f90e484f..b6e5e91c043973f3541938319854639d24bcf15b 100644 (file)
@@ -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("<html><body>\n");
        wprintf("you really want to be <A HREF=\"%s\">here</A> now\n",
                whichpage);