static cache problem with character encoding

Author Message

Jean-François Sénéchal

Monday 12 March 2007 2:22:00 pm

Hello,

All my site is in utf-8
I 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/ezpublish/static/index.html -f
RewriteRule ^/$ /static/index.html [L]
RewriteCond /var/www/sites/marche/html/ezpublish/static/index.html -f
RewriteRule ^$ /static/index.html [L]
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteCond /var/www/sites/marche/html/ezpublish/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 eZ Publish 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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 03:38:04
Script start
Timing: Jan 31 2025 03:38:04
Module start 'layout'
Timing: Jan 31 2025 03:38:04
Module start 'content'
Timing: Jan 31 2025 03:38:04
Module end 'content'
Timing: Jan 31 2025 03:38:04
Script end

Main resources:

Total runtime0.0353 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.3828151.2422
Module start 'layout' 0.00560.0043 739.6250220.7500
Module start 'content' 0.00990.0235 960.3750997.9922
Module end 'content' 0.03340.0019 1,958.367229.9922
Script end 0.0353  1,988.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00287.9450140.0002
Check MTime0.00102.8878140.0001
Mysql Total
Database connection0.00082.361210.0008
Mysqli_queries0.00267.352430.0009
Looping result0.00000.064810.0000
Template Total0.00133.610.0013
Template load0.00102.938410.0010
Template processing0.00020.679110.0002
Override
Cache load0.00071.894110.0007
General
dbfile0.003810.674180.0005
String conversion0.00000.029040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs