Forums / Install & configuration / [eZ Publish 4] upgrade 3.10.0 site with a latin1 database

[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

eZ debug

Timing: Jan 17 2025 23:38:17
Script start
Timing: Jan 17 2025 23:38:17
Module start 'content'
Timing: Jan 17 2025 23:38:18
Module end 'content'
Timing: Jan 17 2025 23:38:18
Script end

Main resources:

Total runtime0.6737 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1094180.8047
Module start 'content' 0.00620.5632 769.9141601.2578
Module end 'content' 0.56930.1043 1,371.1719337.3594
Script end 0.6736  1,708.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.6646210.0002
Check MTime0.00170.2521210.0001
Mysql Total
Database connection0.00080.117710.0008
Mysqli_queries0.603289.54131990.0030
Looping result0.00180.26341970.0000
Template Total0.644495.720.3222
Template load0.00200.296620.0010
Template processing0.642495.354220.3212
Template load and register function0.00010.018410.0001
states
state_id_array0.00110.168910.0011
state_identifier_array0.00070.100120.0003
Override
Cache load0.00170.2509310.0001
Sytem overhead
Fetch class attribute can translate value0.00210.306440.0005
Fetch class attribute name0.00100.152560.0002
XML
Image XML parsing0.00120.182940.0003
class_abstraction
Instantiating content class attribute0.00000.002070.0000
General
dbfile0.00180.2733330.0001
String conversion0.00000.001230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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