Encoding problem

Author Message

Steph A

Friday 10 February 2006 5:18:37 am

I have just tried to use flash applications in my ez innstallation, and for this I have to import some XML content with XML-connector in flash.

The problem accured when trying to read this in flash. All special chars (norwegian) did not show as they should. The reason for this - I found out was the encoding of the templates. So I then changed template-encoding standard to UTF-8.

But now the rest of my content is not showing as it should....

Is this because the encoding of my database probably is latin-1 ?

What can I do?

Steph A

Saturday 11 February 2006 9:56:02 am

I finally made it work!

Make sure your mysql-database is set to UTF-8. Change the templates (site.ini, template.ini and i18.ini). I am also using the fck-editor, and then you also must make sure that the template literal.tpl - is encoded into UTF-8. Because this made some extra unwanted symbols in the content (two questionmarks where shown) - this is probably because the template was written with another encoding, and the data corrupted due to this conversion.

Anyway, now my content is looking fine - and my flash application (with XML connector) reads the XML output just fine (with norwegian special chars.).

:D

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

Main resources:

Total runtime0.6494 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.0039 588.9297152.6094
Module start 'layout' 0.00390.0022 741.539139.4141
Module start 'content' 0.00610.6421 780.9531422.6094
Module end 'content' 0.64820.0012 1,203.56258.1875
Script end 0.6494  1,211.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4826160.0002
Check MTime0.00150.2249160.0001
Mysql Total
Database connection0.00040.068210.0004
Mysqli_queries0.615594.7858520.0118
Looping result0.00040.0635500.0000
Template Total0.619695.420.3098
Template load0.00200.309120.0010
Template processing0.617595.098120.3088
Template load and register function0.00010.018310.0001
states
state_id_array0.00120.188510.0012
state_identifier_array0.00150.235020.0008
Override
Cache load0.00160.2513130.0001
Sytem overhead
Fetch class attribute can translate value0.00090.133210.0009
Fetch class attribute name0.00080.130720.0004
XML
Image XML parsing0.00010.015610.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00050.0773100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs