Differences From:
File
src/cgi.c
part of check-in
[cd965de682]
- Fix some compiler warnings.
by
drh on
2009-01-24 10:44:43.
[view]
To:
File
src/cgi.c
part of check-in
[daacc139a5]
- Always report the content-type charset as utf-8.
Ticket cc6557cfc5763fa80bb04eecea7f713b0751efc4
by
drh on
2009-02-01 12:23:53.
[view]
@@ -322,16 +322,9 @@
/* Content intended for logged in users should only be cached in
** the browser, not some shared location.
*/
fprintf(g.httpOut, "Cache-control: private\r\n");
-
-#if FOSSIL_I18N
- fprintf(g.httpOut,
- "Content-Type: %s; charset=%s\r\n", zContentType, nl_langinfo(CODESET));
-#else
- fprintf(g.httpOut,
- "Content-Type: %s; charset=ISO-8859-1\r\n", zContentType);
-#endif
+ fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
if( strcmp(zContentType,"application/x-fossil")==0 ){
cgi_combine_header_and_body();
blob_compress(&cgiContent[0], &cgiContent[0]);
}