UTF-8 is going to be the standard character set for the Citadel system.
$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
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
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);
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"
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();\" >"
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(
<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>
<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>
<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>
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
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);