EventManager with åäö etc.

Author Message

Karl H

Tuesday 09 October 2007 9:57:10 am

Hi, this is a question about the EventManager contribution - there wasn't a folder about it in the Extension section, so I'm posting it here.

We're having problems with the CSV-function and characters such as åäö. When clicking on the "Download csv list" - in the list produced some characters don't get traslated properly. ö become ö, ä becomes ä and so on.

Does anyone know how this could be solved? We've tried changing:

header( 'Content-Type: text/csv; charset=' . $httpCharset );

into:

header( 'Content-Type: text/csv; charset='UTF-8' );

in the csv.php file for that extension, but it doesn't seem to help.

Many thanks,
Karl

Kristof Coomans

Monday 15 October 2007 6:34:02 am

Hi Karl

Setting $httpCharset = 'utf-8'; works fine here. With which program did you open the downloaded CSV file? It's possible that the software didn't properly recognize the character encoding.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Karl H

Monday 15 October 2007 9:21:11 am

Thanks for the reply!

We've tried to open the CSV file in both Excel and OpenOffice. After reading a bit more about this, it seems CSV files have a problem with character encoding - hence, opening the file in OpenOffice and then choosing UTF-8 as the charset when importing the file, it works OK - not quite sure how to do the same in Excel, but oh well. Then re-saving the file as an Excel (.xls) document, it maintains the right character encoding.

Not ideal if a client runs into this problem, but otherwise works OK now.

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

Main resources:

Total runtime0.7425 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.0057 587.9063152.6250
Module start 'layout' 0.00570.0030 740.531339.4453
Module start 'content' 0.00880.7322 779.9766531.8125
Module end 'content' 0.74100.0015 1,311.789112.1641
Script end 0.7424  1,323.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4802160.0002
Check MTime0.00130.1763160.0001
Mysql Total
Database connection0.00110.143710.0011
Mysqli_queries0.693393.3781570.0122
Looping result0.00050.0722550.0000
Template Total0.711495.820.3557
Template load0.00210.283520.0011
Template processing0.709395.522720.3546
Template load and register function0.00010.019210.0001
states
state_id_array0.00110.148710.0011
state_identifier_array0.00090.124520.0005
Override
Cache load0.00180.2373200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.093120.0003
Fetch class attribute name0.00130.181340.0003
XML
Image XML parsing0.00070.100220.0004
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00090.1274160.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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.0001 secs