Fossil SCM

Always report the content-type charset as utf-8. Ticket [cc6557cfc5763fa80bb04eecea7f713b0751efc4]

drh 2009-02-01 12:23 UTC trunk
Commit daacc139a50e09a6191085e364f6c8e61228eece
1 file changed +1 -8
+1 -8
--- src/cgi.c
+++ src/cgi.c
@@ -321,18 +321,11 @@
321321
322322
/* Content intended for logged in users should only be cached in
323323
** the browser, not some shared location.
324324
*/
325325
fprintf(g.httpOut, "Cache-control: private\r\n");
326
-
327
-#if FOSSIL_I18N
328
- fprintf(g.httpOut,
329
- "Content-Type: %s; charset=%s\r\n", zContentType, nl_langinfo(CODESET));
330
-#else
331
- fprintf(g.httpOut,
332
- "Content-Type: %s; charset=ISO-8859-1\r\n", zContentType);
333
-#endif
326
+ fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
334327
if( strcmp(zContentType,"application/x-fossil")==0 ){
335328
cgi_combine_header_and_body();
336329
blob_compress(&cgiContent[0], &cgiContent[0]);
337330
}
338331
339332
--- src/cgi.c
+++ src/cgi.c
@@ -321,18 +321,11 @@
321
322 /* Content intended for logged in users should only be cached in
323 ** the browser, not some shared location.
324 */
325 fprintf(g.httpOut, "Cache-control: private\r\n");
326
327 #if FOSSIL_I18N
328 fprintf(g.httpOut,
329 "Content-Type: %s; charset=%s\r\n", zContentType, nl_langinfo(CODESET));
330 #else
331 fprintf(g.httpOut,
332 "Content-Type: %s; charset=ISO-8859-1\r\n", zContentType);
333 #endif
334 if( strcmp(zContentType,"application/x-fossil")==0 ){
335 cgi_combine_header_and_body();
336 blob_compress(&cgiContent[0], &cgiContent[0]);
337 }
338
339
--- src/cgi.c
+++ src/cgi.c
@@ -321,18 +321,11 @@
321
322 /* Content intended for logged in users should only be cached in
323 ** the browser, not some shared location.
324 */
325 fprintf(g.httpOut, "Cache-control: private\r\n");
326 fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);
 
 
 
 
 
 
 
327 if( strcmp(zContentType,"application/x-fossil")==0 ){
328 cgi_combine_header_and_body();
329 blob_compress(&cgiContent[0], &cgiContent[0]);
330 }
331
332

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button