Check-in [daacc139a5]
Not logged in
Overview

SHA1 Hash:daacc139a50e09a6191085e364f6c8e61228eece
Date: 2009-02-01 12:23:53
User: drh
Comment:Always report the content-type charset as utf-8. Ticket cc6557cfc5763fa80bb04eecea7f713b0751efc4
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/cgi.c from [ebad09218e] to [4896124194].

@@ -321,18 +321,11 @@
 
   /* 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]);
   }