Forums / Install & configuration / static cache problem with character encoding
Jean-François Sénéchal
Monday 12 March 2007 2:22:00 pm
Hello,
All my site is in utf-8I have ez 3.9
I execute the script makestaticcache.php
and added in apache conf :
#pour la creation des pages du site RewriteCond /var/www/sites/marche/html/Exponential/static/index.html -f RewriteRule ^/$ /static/index.html [L] RewriteCond /var/www/sites/marche/html/Exponential/static/index.html -f RewriteRule ^$ /static/index.html [L] RewriteCond %{REQUEST_METHOD} !^POST$ RewriteCond /var/www/sites/marche/html/Exponential/static$1/index.html -f RewriteRule ^(.*)$ /static$1/index.html [L]# fin pour static
all my pages are generated in utf-8 encoding, but the navigator try to post the page in a other encoding (ISO-8859-1)
Look at http://www.marche.be/static.jpg
Why it's not the good character encoding headers
thanks !
L'informaticien est comme un petit canard: il est calme en surface mais en dessous il brasse beaucoup d'eau pour avancer ...!
Damien Pobel
Monday 12 March 2007 3:47:36 pm
Hi,
It's not a problem related to Exponential but related to Apache. You should configure Apache to send your page in UTF-8 by adding a line like
AddDefaultCharset utf-8
to your apache configuration.
Damien Planet eZ Publish.fr : http://www.planet-ezpublish.fr Certification : http://auth.ez.no/certification/verify/372448 Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish