Apostrophe not working in xml field

Author Message

Ivan Imanishi

Tuesday 26 August 2003 12:13:25 pm

Hello,
I've been having some problems with apostrophe in xml fields. Whenever I use it the content is lost.
For example:
<link href='http://somesite.com'> doesn't work, and becomes:
<link href=''>

The same code using quotes work perfectly.

Ideas?

Thank you,

Ivan

ben m

Tuesday 26 August 2003 12:26:24 pm

I'm experiencing a similar problem in 3.1-1 where my quotation marks are all being converted to question marks (?). Is this a magic quotes issue? I couldn't find any similar posts in the forum...
thanks!
Ben

Alex Jones

Tuesday 26 August 2003 12:37:51 pm

Make sure you aren't pasting content copied from a Microsoft Office product. The XML fields and some Web browsers don't recognize the curly quotes and apostrophes that MS products use in place of the straight variants.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Ivan Imanishi

Tuesday 26 August 2003 1:46:20 pm

It's not a problem with copy and paste from office (though I have experienced that problem too).
The problem occurs even when typing the text directly into the browser.
In fact, when i first noticed the problem i began using quotes instead. And the link worked. But whenever I edited the article, the system would replace the quotes for apostrophes automaticaly in the text field. So, if I just publish the article, the link would be lost. I then edited the kernel so that it would not use apostrophes when rebuilding the link tag.
This has made it possible for me to use the system, but I still have to avoid using apostrophes, which should not be the case.

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 19:25:31
Script start
Timing: Jan 18 2025 19:25:31
Module start 'layout'
Timing: Jan 18 2025 19:25:31
Module start 'content'
Timing: Jan 18 2025 19:25:32
Module end 'content'
Timing: Jan 18 2025 19:25:32
Script end

Main resources:

Total runtime1.2089 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.0313152.6406
Module start 'layout' 0.00810.0036 740.671939.4609
Module start 'content' 0.01161.1958 780.1328573.3516
Module end 'content' 1.20740.0015 1,353.484412.1563
Script end 1.2089  1,365.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2931160.0002
Check MTime0.00150.1224160.0001
Mysql Total
Database connection0.00190.156310.0019
Mysqli_queries1.149695.0955620.0185
Looping result0.00080.0647600.0000
Template Total1.169396.720.5847
Template load0.00220.183420.0011
Template processing1.167196.539220.5835
Template load and register function0.00020.016810.0002
states
state_id_array0.00190.158010.0019
state_identifier_array0.00180.148520.0009
Override
Cache load0.00190.1541250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.048830.0002
Fetch class attribute name0.00260.211750.0005
XML
Image XML parsing0.00100.085530.0003
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00100.0828160.0001
String conversion0.00000.000740.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs