templates converted to utf-8 crashed a page layout

Author Message

Andrey Astakhov

Saturday 20 January 2007 2:47:47 pm

To avoid charset conversion on my site i took an advice to set:
i18n.ini -> [CharacterSettings] Charset=utf-8
template.ini -> [CharsetSettings] DefaultTemplateCharset=utf-8

AND ALSO i converted my templates to UTF-8, so each template file begins with utf-8 byte order mask (http://en.wikipedia.org/wiki/Byte_Order_Mark).

It broke a design of my site because resulted html contains now a lot of byte order masks - "" (before each template inclusion).

How to get rid of this ""? How to convert templates correctly?

Danilo Shiga

Monday 16 March 2009 10:43:48 am

I'm having similar issue, any solution?

Danilo Shiga

Monday 16 March 2009 11:00:25 am

Vidar Langseid

Tuesday 17 March 2009 1:12:08 am

Hi

You may also try my script which convert files to utf-8:
http://issues.ez.no/IssueView.php?Id=13835

Best regards

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 11:32:22
Script start
Timing: Jan 18 2025 11:32:22
Module start 'layout'
Timing: Jan 18 2025 11:32:22
Module start 'content'
Warning: PHP: E_WARNING Jan 18 2025 11:32:23
DOMDocument::loadXML(): Opening and ending tag mismatch: literal line 2 and paragraph in Entity, line: 6 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Warning: PHP: E_WARNING Jan 18 2025 11:32:23
DOMDocument::loadXML(): Opening and ending tag mismatch: paragraph line 2 and section in Entity, line: 6 in /home/ze/public_html/share.se7enx.com/kernel/classes/datatypes/ezxmltext/ezxmloutputhandler.php on line 174
Timing: Jan 18 2025 11:32:23
Module end 'content'
Timing: Jan 18 2025 11:32:23
Script end

Main resources:

Total runtime1.4739 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.2734152.6406
Module start 'layout' 0.00490.0030 741.914139.4766
Module start 'content' 0.00791.4636 781.3906511.5703
Module end 'content' 1.47150.0024 1,292.96098.3359
Script end 1.4739  1,301.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2120160.0002
Check MTime0.00130.0868160.0001
Mysql Total
Database connection0.00080.053510.0008
Mysqli_queries1.427396.8361620.0230
Looping result0.00140.0945600.0000
Template Total1.434797.320.7173
Template load0.00200.138720.0010
Template processing1.432697.196620.7163
Template load and register function0.00020.011710.0002
states
state_id_array0.00200.133410.0020
state_identifier_array0.00320.215720.0016
Override
Cache load0.00170.1160170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.053030.0003
Fetch class attribute name0.00200.133040.0005
XML
Image XML parsing0.00030.022630.0001
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00080.0509100.0001
String conversion0.00000.002040.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs