' displayed on internet explorer (works on firefox)

Author Message

Massimiliano Bariola

Tuesday 28 March 2006 2:37:45 am

Hi,

I have the following problem:

http://www.flcgil.it/utils/search?text=La+scuola+come+luogo&SearchButton.x=40&SearchButton.y=4

on firefox the page is correctly displayed, but it will not on IE, showing many ' characters.

show source for firefox shows that it converted the ' entity to the " ' " mark, while show source for IE shows the ' entity.

site language is italian, but doctype for pages is like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no" lang="no">

(I'd love to know where to change that xml:lang and lang to "it")

What is the problem and how can I fix it?

thank you

Kristof Coomans

Tuesday 28 March 2006 2:57:00 am

Which version of eZ publish are you using?

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

Fabricio Guerrero

Tuesday 28 March 2006 3:18:14 am

Hi,

I had same exact problem while back and it came down to how you're displaying text/content.

I had to show content in these formats in different given situations:

{$:item.data_map.intro.content.output.output_text}

{$matched_node.object.data_map.title.content|wash}

and the normal:

{attribute_view_gui attribute=$matched_node.object.data_map.intro}

As it depends on how what type the field is and which is the best to display its content...

Regards,
Fabricio

http://www.solobromasychistes.com <<Joomla Site :P
http://www.recipesforhealthyfood.com/ <<Drupal Site :P
http://www.ezforge.com/ <<future ezCommunity, Articles, forums and more...

Massimiliano Bariola

Tuesday 28 March 2006 3:27:13 am

ezp 3.7.2 rev 13942 .

It seems that IE does not handle &apos;entities though ....

http://fishbowl.pastiche.org/2003/07/01/the_curse_of_apos
http://www.unc.edu/~zito/worklog/archives/2004/11/microsoft_ie_do.html
http://msdn.microsoft.com/workshop/author/dhtml/reference/charsets/charset1.asp

but maybe something can be done on XMLtext conversion, because it is there that the &apos; is generated. it happens in HTML texts and those entered via OE. is there a way to force XML text to convert &apos; to say, &#39; ?

Massimiliano Bariola

Tuesday 28 March 2006 4:59:04 am

I found the solution.

http://ez.no/community/forum/developer/displaying_apostrophes

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 08:56:34
Script start
Timing: Jan 19 2025 08:56:34
Module start 'layout'
Timing: Jan 19 2025 08:56:34
Module start 'content'
Timing: Jan 19 2025 08:56:34
Module end 'content'
Timing: Jan 19 2025 08:56:34
Script end

Main resources:

Total runtime0.0168 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 590.7188152.6406
Module start 'layout' 0.00520.0034 743.359439.4766
Module start 'content' 0.00860.0059 782.835993.5234
Module end 'content' 0.01450.0022 876.359438.3047
Script end 0.0168  914.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.1892140.0002
Check MTime0.00116.2495140.0001
Mysql Total
Database connection0.00084.747710.0008
Mysqli_queries0.002715.841130.0009
Looping result0.00000.178510.0000
Template Total0.001911.110.0019
Template load0.00095.294610.0009
Template processing0.00105.806010.0010
Override
Cache load0.00063.707710.0006
General
dbfile0.00031.745580.0000
String conversion0.00000.060940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs