Forums / Setup & design / Encoding problem

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

eZ debug

Timing: Jan 18 2025 11:04:37
Script start
Timing: Jan 18 2025 11:04:37
Module start 'content'
Timing: Jan 18 2025 11:04:37
Module end 'content'
Timing: Jan 18 2025 11:04:37
Script end

Main resources:

Total runtime0.6902 sec
Peak memory usage4,096.0000 KB
Database Queries53

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 589.0391180.8438
Module start 'content' 0.00910.6749 769.8828427.6719
Module end 'content' 0.68400.0061 1,197.554742.1328
Script end 0.6901  1,239.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4683140.0002
Check MTime0.00140.2063140.0001
Mysql Total
Database connection0.00130.192710.0013
Mysqli_queries0.651094.3212530.0123
Looping result0.00040.0649510.0000
Template Total0.649394.120.3246
Template load0.00270.384420.0013
Template processing0.646693.686620.3233
Template load and register function0.00020.031410.0002
states
state_id_array0.00330.479610.0033
state_identifier_array0.00160.225220.0008
Override
Cache load0.00220.3209130.0002
Sytem overhead
Fetch class attribute can translate value0.00070.105110.0007
Fetch class attribute name0.00100.138120.0005
XML
Image XML parsing0.00010.015610.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00280.4097120.0002
String conversion0.00000.001230.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs