Problem with character à (a with accent)

Author Message

doura 8

Tuesday 20 June 2006 2:58:26 am

Hello,

Excuse me for my bad english...

I've installed EZ Publish 3.8 (php 4.3.10, apache 1.3, mysql 4.19) and used the charset utf8.
I write some text in French and can use the character é,è,ç... but when I write "à", my browser (and my computer) is blocked during few minutes and the text is cut just before the character.
In the database, the ezxmltext is broken too just before this character...

I don't understand what happens...

Thanks for your help...

Kristof Coomans

Tuesday 20 June 2006 5:57:48 am

Welcome to the eZ community!

Have you configured your database to use UTF-8?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

doura 8

Friday 23 June 2006 9:13:39 am

Hello,

thanks for your answer Kristof but my problem isn't solved.

I've installed PHP 4.4.2 and mysql 4.1 and my database is configured to use UTF-8.
The files site.ini.append.php and i18n.ini.append.php is configured correctly too.

Now, I've a new error message and I see in the file "error.log" :

<i>
eZMySQLDB:
Query error: Data too long for column 'data_text' at row 1. Query: UPDATE ezcontentobject_attribute
SET language_id='4', contentclassattribute_id='120',
attribute_original_id='0', sort_key_int='0', sort_key_string='',
data_type_string='ezxmltext',
data_text='<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<section xmlns:image=\"http://ez.no/namespaces/ezpublish3/image/\"\n xmlns:xhtml=\"http://ez.no/namespaces/ezpublish3/xhtml/\"\n xmlns:custom=\"http://ez.no/namespaces/ezpublish3/custom/\">\n <paragraph>essai à la maison</paragraph>\n</section>', data_int='1045487555', data_float='0.000000'
WHERE id='282' AND contentobject_id='75' AND version='1' AND language_code='fre-FR'
[ Jun 23 2006 17:35:32 ] [127.0.0.1] eZDBInterface::commit TRANSID-c56af9695f7cd4ecbfcb33f98543fa82:
Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-c56af9695f7cd4ecbfcb33f98543fa82. </i>

Finally, I've all configured to use latin1 and there is no more problem... but it's not o good solution...

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 22:16:41
Script start
Timing: Jan 18 2025 22:16:41
Module start 'layout'
Timing: Jan 18 2025 22:16:41
Module start 'content'
Timing: Jan 18 2025 22:16:41
Module end 'content'
Timing: Jan 18 2025 22:16:41
Script end

Main resources:

Total runtime0.7710 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.4609152.6406
Module start 'layout' 0.00580.0024 742.101639.4766
Module start 'content' 0.00820.7613 781.5781536.7969
Module end 'content' 0.76960.0014 1,318.375012.1250
Script end 0.7710  1,330.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4327160.0002
Check MTime0.00140.1860160.0001
Mysql Total
Database connection0.00100.125510.0010
Mysqli_queries0.719493.3052570.0126
Looping result0.00070.0853550.0000
Template Total0.733795.220.3668
Template load0.00220.285020.0011
Template processing0.731494.868920.3657
Template load and register function0.00020.021610.0002
states
state_id_array0.00280.367510.0028
state_identifier_array0.00130.166020.0006
Override
Cache load0.00180.2390310.0001
Sytem overhead
Fetch class attribute can translate value0.00120.153920.0006
Fetch class attribute name0.00120.150540.0003
XML
Image XML parsing0.00070.093920.0004
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00080.1049160.0001
String conversion0.00000.000940.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs