content/search and url encoding

Author Message

Franck Grenier

Friday 26 February 2010 8:00:30 am

Hello,

I'm having troubles with "content/search". The search template displays a $searchText variable which is not encoded correctly. Strange with a original functionality of ezpublish !

The param in the URL seems to be encoded in ISO and my template is in UTF8.

How can I display this text correctly ?

Developer at Open Wide

Franck Grenier

Friday 26 February 2010 8:36:24 am

Found it !

I used "urldecode" in the template.

Developer at Open Wide

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 02:46:17
Script start
Timing: Jan 18 2025 02:46:17
Module start 'layout'
Timing: Jan 18 2025 02:46:17
Module start 'content'
Timing: Jan 18 2025 02:46:18
Module end 'content'
Timing: Jan 18 2025 02:46:18
Script end

Main resources:

Total runtime1.0202 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.0080 587.9141152.6250
Module start 'layout' 0.00800.0033 740.539139.4609
Module start 'content' 0.01131.0072 780.0000449.4297
Module end 'content' 1.01860.0016 1,229.42978.1641
Script end 1.0202  1,237.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3303160.0002
Check MTime0.00140.1383160.0001
Mysql Total
Database connection0.00250.240310.0025
Mysqli_queries0.971995.2685520.0187
Looping result0.00060.0626500.0000
Template Total0.971095.220.4855
Template load0.00420.414420.0021
Template processing0.966794.759420.4834
Template load and register function0.00030.028310.0003
states
state_id_array0.00200.199410.0020
state_identifier_array0.00300.291220.0015
Override
Cache load0.00380.3690100.0004
Sytem overhead
Fetch class attribute can translate value0.00090.090410.0009
Fetch class attribute name0.00170.169820.0009
XML
Image XML parsing0.00010.011410.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.0772100.0001
String conversion0.00000.001040.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