* All OS-level includes are now included from webcit.h instead of from
[citadel.git] / webcit / paging.c
index f05ed31cb7f8f61688a10cb00646c9e719008af0..c202b3e7b6e3704315908190683b3d64263219f7 100644 (file)
@@ -4,29 +4,8 @@
  * Functions which implement the chat and paging facilities.
  */
 
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <sys/poll.h>
-#include <sys/time.h>
-#include <limits.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <string.h>
-#include <pwd.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <pthread.h>
-#include <signal.h>
 #include "webcit.h"
 
-
 /*
  * display the form for paging (x-messaging) another user
  */
@@ -270,7 +249,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 +394,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();\" >"