Question to eZ crew!

Author Message

Rami Grossman

Sunday 11 July 2004 10:47:28 pm

What do I have to do to make string handling work with Unicode?
If its not possible, then when will it be?

Jan Borsodi

Monday 12 July 2004 5:05:46 am

Which string handling are you referring to?
Do you mean for template operators?

This is quite complex actually, you can get support for Unicode for a lot of string functions in PHP by using the mb_string extension.
However this extension is not always available and it will slow down everything since it will use Unicode strings on ALL strings and not just the ones that needs it.

To implement this properly we will have to generate PHP fallback functions for the most common strings operations in pure PHP (for those who don't have mb_string, otherwise we just call the mb_string functions directly). Then all text/string operators must be changed to use this library.

All in all this requires lots of work.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 19 2025 04:38:09
Script start
Timing: Jan 19 2025 04:38:09
Module start 'layout'
Timing: Jan 19 2025 04:38:09
Module start 'content'
Timing: Jan 19 2025 04:38:09
Module end 'content'
Timing: Jan 19 2025 04:38:09
Script end

Main resources:

Total runtime0.6316 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 589.0313152.6094
Module start 'layout' 0.00720.0038 741.640639.4297
Module start 'content' 0.01110.6188 781.0703521.1016
Module end 'content' 0.62980.0016 1,302.17198.1875
Script end 0.6314  1,310.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.7029160.0003
Check MTime0.00220.3467160.0001
Mysql Total
Database connection0.00170.272310.0017
Mysqli_queries0.578591.5989540.0107
Looping result0.00070.1035520.0000
Template Total0.583392.320.2916
Template load0.00290.451320.0014
Template processing0.580491.895020.2902
Template load and register function0.00040.061910.0004
states
state_id_array0.00140.222210.0014
state_identifier_array0.00250.397120.0013
Override
Cache load0.00240.3876130.0002
Sytem overhead
Fetch class attribute can translate value0.00050.085420.0003
Fetch class attribute name0.00140.226230.0005
XML
Image XML parsing0.00070.105020.0003
class_abstraction
Instantiating content class attribute0.00000.001630.0000
General
dbfile0.00180.2832170.0001
String conversion0.00000.001440.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs