HTTP header doesn't specify utf-8

Gerald Pfeifer gerald@pfeifer.com
Sun Aug 26 19:49:00 GMT 2012


On Thu, 26 Jul 2012, Jonathan Wakely wrote:
>> This page: http://gcc.gnu.org/onlinedocs/libstdc++/faq.html (and other
>> pages) don't include a utf-8 charset in the content-type http header,
> See http://gcc.gnu.org/ml/gcc/2012-04/msg00597.html and
> http://gcc.gnu.org/ml/gcc/2012-06/msg00125.html

I am applying the patch below to our global .htaccess file which,
according to my testing, does the trick.

On Thu, 26 Jul 2012, Benjamin De Kosnik wrote:
> ouch. I had forgotten about this, which is now PR 54102. 

Still, can you please continue to look into this, Benjamin? 
Having proper (XML) headers as part of the individual documents
still will be good.

Thanks,
Gerald

Index: .htaccess
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/.htaccess,v
retrieving revision 1.28
diff -u -3 -p -r1.28 .htaccess
--- .htaccess	10 Oct 2009 20:36:09 -0000	1.28
+++ .htaccess	26 Aug 2012 19:40:59 -0000
@@ -1,3 +1,5 @@
+AddDefaultCharset utf-8
+
 Redirect permanent /egcs-1.0/egcs-1.0.html	http://gcc.gnu.org/egcs-1.0/
 Redirect permanent /egcs-1.0/egcs-1.0.1.html	http://gcc.gnu.org/egcs-1.0/
 Redirect permanent /egcs-1.0/egcs-1.0.2.html	http://gcc.gnu.org/egcs-1.0/



More information about the Gcc mailing list