' 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.