httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindahl <lind...@pbm.com>
Subject [users@httpd] utf8 charset question
Date Wed, 09 May 2007 04:12:53 GMT
I have some webpages and a CGI script which are utf8. This is apache2 on Linux.

With this .htaccess file:

AddHandler cgi-script cgi
#AddDefaultCharset UTF-8
#AddCharset utf-8 .cgi .html
#AddType "text/html; charset=UTF-8" .cgi .html
Options +ExecCGI

With all 3 lines commented, both the webpages and the CGI emit
iso-8859-1, my server default.

If I uncomment any one of the 3 commented lines. my .html pages all
come out utf-8. But, no matter what, my cgi always is iso-8859-1.

What am I missing? My apache and vhosts config seem to be fine.

url is http://www.pbm.com/~lindahl/union/search.cgi, if you'd like to
play.

-- greg


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message