mysqldump - charset problem

Author Message

Artturi Markko

Sunday 28 May 2006 8:51:40 am

Hello,

I was running Ez 3.7.5 and made a backup via phpmyadmin before upgrading to ez 3.8.0.
My setup is apache 1.33, windows 2003, and mysql 4.1.12-nt

The only defined charset I've found in the ini settings come from i18n.ini and is :

[CharacterSettings]
Charset=iso-8859-1
HTTPCharset=
MBStringExtension=enabled

The problem is that the backup contains strange characters instead of accents and when restored, all accents are replaced with things like this :

dépôt des thèsesdépôt des thèses

1) Is there a way to get my accents back ?
2) What have I done wrong / what should I do to create a good backup ?

Thanks in advance,

Artturi

Artturi Markko

Sunday 28 May 2006 12:46:33 pm

I've just tested to dump a database with this syntax :

mysqldump --default-character-set=latin1 database > file.sql

and file.sql's content respects all the accents.

It seems to be a phpmyadmin problem (reading mysql's documentation :

--default-character-set=charset_name

Use charset_name as the default character set. See Section 5.11.1, “The Character Set Used for Data and Sorting”. If not specified, mysqldump uses utf8. 

Artturi

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

Main resources:

Total runtime0.6170 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1484152.6250
Module start 'layout' 0.00540.0030 741.773439.4453
Module start 'content' 0.00850.6068 781.2188428.3125
Module end 'content' 0.61530.0016 1,209.53138.1641
Script end 0.6169  1,217.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5799160.0002
Check MTime0.00150.2397160.0001
Mysql Total
Database connection0.00060.102010.0006
Mysqli_queries0.569792.3374520.0110
Looping result0.00040.0712500.0000
Template Total0.583294.520.2916
Template load0.00190.306820.0009
Template processing0.581394.214420.2906
Template load and register function0.00010.021910.0001
states
state_id_array0.00070.113310.0007
state_identifier_array0.00130.205720.0006
Override
Cache load0.00150.2467210.0001
Sytem overhead
Fetch class attribute can translate value0.00070.105410.0007
Fetch class attribute name0.00090.150920.0005
XML
Image XML parsing0.00010.017910.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00570.9245100.0006
String conversion0.00000.001240.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
2content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs