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