You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marcelo de Moraes Serpa <ce...@gmail.com> on 2008/04/24 23:00:14 UTC
[users@httpd] Force Apache to send the correct encoding
Hello,
This might be a simple question, but I'm having issues serving HTML files
with the ISO-8859-1 encoding. I could, in theory, change the encoding of
each file, but doing so for thousands of files is not so practical.
I've got a VirtualHost and inside it I have an alias:
Alias /doc "/home/dtweb/static/documentation/"
<Directory "/home/dtweb/static/documentation/">
AllowOverride All
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
The documentation dir has all these html files. Apache seems to be serving
them with a UTF-8 encoding.
How could I force apache to tell the browser to use ISO-8859-1?
Thanks in advance,
Marcelo.
Re: [users@httpd] Force Apache to send the correct encoding
Posted by Dragon <dr...@crimson-dragon.com>.
Marcelo de Moraes Serpa wrote:
>Hello,
>
>This might be a simple question, but I'm having issues serving HTML
>files with the ISO-8859-1 encoding. I could, in theory, change the
>encoding of each file, but doing so for thousands of files is not so practical.
>
>I've got a VirtualHost and inside it I have an alias:
>
> Alias /doc "/home/dtweb/static/documentation/"
> <Directory "/home/dtweb/static/documentation/">
> AllowOverride All
> Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
> Order allow,deny
> Allow from all
> </Directory>
>
>
>The documentation dir has all these html files. Apache seems to be
>serving them with a UTF-8 encoding.
>
>How could I force apache to tell the browser to use ISO-8859-1?
>
>Thanks in advance,
>
>Marcelo.
---------------- End original message. ---------------------
See the AddDefaultCharset directive on the following page:
http://httpd.apache.org/docs/2.2/mod/core.html
Dragon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
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