[eZ Publish 4] upgrade 3.10.0 site with a latin1 database

Author Message

Damien Pobel

Monday 26 November 2007 4:05:28 pm

Hi,

Today I tried to port my 3.10.0 site to eZ Publish 4.
I've got only one major problem with the accents in the XML Block.
For example, the following sentence in 3.10.0 in an XML Block <i>L'envoi d'un en-tête de ce type provoque sous IE un comportement complètement aberrant.</i> is transformed in <i>L'envoi d'un en-tête de ce type provoque sous IE un comportement complètement aberrant.</i> in 4.0beta site.
This problem occurs only in XML Block, others datatypes don't seem to be affected.

Current configuration :
settings/override/i18n.ini.append.php :

<?php /* #?ini charset="iso-8859-1"?
[CharacterSettings]
Charset=iso-8859-1
*/ ?>

and Charset in DatabaseSettings is empty in site.ini.append.php

The XML Block in the database starts with the prologue <?xml version="1.0" encoding="iso-8859-1"?>

Do I need to convert my database to UTF-8 or is there a magical settings ;-) ?
I read [1] but it doesn't seem easy...

[1] http://ez.no/developer/forum/general/convert_from_iso_8859_1_encoding_to_utf_8

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

Xavier Dutoit

Wednesday 28 November 2007 1:00:39 am

Did you update mysql as well ?

X+

http://www.sydesy.com

Ole Marius Smestad

Wednesday 28 November 2007 1:08:16 am

Hi, this is on our radar

see http://issues.ez.no/IssueView.php?Id=12090


--
Ole Marius Smestad
Lead Engineer eZ Publish
Member of the Community Project Board

Damien Pobel

Wednesday 28 November 2007 1:25:22 am

Hi,

@Xavier : I only followed the upgrade documentation [1]. There's no action about encoding or MySQL as mentionned in the bug report. I already use a recent MySQL release (5.0).

@Ole : cool, it's really needed. On my side, I'll try to find a solution based on [2] even if this solution has some problem with serialized data.

[1] http://ez.no/doc/ez_publish/upgrading/upgrading_to_4_0/from_3_10_0_to_4_0_0
[2] http://ez.no/developer/forum/general/convert_from_iso_8859_1_encoding_to_utf_8#msg120418

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 18 2025 02:00:44
Script start
Timing: Jan 18 2025 02:00:44
Module start 'layout'
Timing: Jan 18 2025 02:00:44
Module start 'content'
Timing: Jan 18 2025 02:00:44
Module end 'content'
Timing: Jan 18 2025 02:00:44
Script end

Main resources:

Total runtime0.7707 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 594.4688152.6563
Module start 'layout' 0.00530.0027 747.125039.4922
Module start 'content' 0.00810.7611 786.6172596.1484
Module end 'content' 0.76920.0014 1,382.765612.0938
Script end 0.7706  1,394.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4115160.0002
Check MTime0.00130.1686160.0001
Mysql Total
Database connection0.00070.090810.0007
Mysqli_queries0.718393.2003620.0116
Looping result0.00060.0791600.0000
Template Total0.736295.520.3681
Template load0.00210.269820.0010
Template processing0.734295.262820.3671
Template load and register function0.00010.012910.0001
states
state_id_array0.00230.304910.0023
state_identifier_array0.00140.180420.0007
Override
Cache load0.00170.2261310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.077630.0002
Fetch class attribute name0.00140.180760.0002
XML
Image XML parsing0.00120.156530.0004
class_abstraction
Instantiating content class attribute0.00000.001970.0000
General
dbfile0.00130.1720220.0001
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs