First word letter and some letters like: Æ, Ø and others

Author Message

Martynas Bilevičius

Thursday 03 April 2008 1:59:10 pm

Hello, i need get first word letter, i use this function extract_left(1) and cut first letter, but if symbol is like Æ and i cut first letter i have bad value '?' because Æ is made from to symbols and cant get good value. It is another way get first word letter ?

Nicolas Lescure

Thursday 03 April 2008 3:24:11 pm

Yes, it is a real problem. This comes from a bug of some php functions that do not support multibytes strings.
You can check the bug here : http://issues.ez.no/IssueView.php?Id=11481&activeItem=1

We made our own template operator to solve the problem.

Martynas Bilevičius

Saturday 05 April 2008 8:38:26 am

Also is problem then i fetch some node and try sort by Name there is first symbol Æ. It is way sort correctly.

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 31 2025 05:59:28
Script start
Timing: Jan 31 2025 05:59:28
Module start 'layout'
Timing: Jan 31 2025 05:59:28
Module start 'content'
Timing: Jan 31 2025 05:59:29
Module end 'content'
Timing: Jan 31 2025 05:59:29
Script end

Main resources:

Total runtime1.1560 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.3906151.2422
Module start 'layout' 0.00530.0036 739.632836.7109
Module start 'content' 0.00891.1463 776.3438924.2031
Module end 'content' 1.15520.0008 1,700.54697.7813
Script end 1.1560  1,708.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2865160.0002
Check MTime0.00140.1207160.0001
Mysql Total
Database connection0.00070.057410.0007
Mysqli_queries1.108395.8687570.0194
Looping result0.00060.0542550.0000
Template Total1.112196.220.5560
Template load0.00210.177420.0010
Template processing1.110096.018620.5550
Template load and register function0.00130.112110.0013
states
state_id_array0.00190.166210.0019
state_identifier_array0.00150.129720.0007
Override
Cache load0.00170.1431110.0002
Sytem overhead
Fetch class attribute can translate value0.00070.057420.0003
Fetch class attribute name0.00190.164740.0005
XML
Image XML parsing0.00190.163820.0009
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00400.3453160.0002
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs