[Zope] DTML method entry translates hyphens to HTML entity

Robin Macharg robin@appliancestudio.com
Thu, 4 Apr 2002 13:59:37 +0100


Completely correct, thanks.  I'm doing exactly that.  I guess Acrobat's
encoding is doing funky things behind the (windows clipboard) scenes.

R

----- Original Message -----
From: "Tom Nixon" <tom.nixon@aim23.com>
To: "'Robin Macharg'" <robin@appliancestudio.com>
Cc: <zope@zope.org>
Sent: Thursday, April 04, 2002 1:51 PM
Subject: RE: [Zope] DTML method entry translates hyphens to HTML entity


> Are you copying-and-pasting the code from somewhere? I had this problem
> with some of the demo code in the Zope Book PDF. I found that if I used
> the HTML version it worked fine.
>
> --
> Tom Nixon        e : tom.nixon@aim23.com
> Aim23 Limited    t : +44 (0) 8702 002300
>
> > -----Original Message-----
> > From: zope-admin@zope.org [mailto:zope-admin@zope.org] On
> > Behalf Of Robin Macharg
> > Sent: 04 April 2002 13:41
> > To: Zope Mailing List
> > Subject: [Zope] DTML method entry translates hyphens to HTML entity
> >
> >
> > Hi, newbie question/problem here - apologies if this is
> > answered elsewhere
> > but I'm just finding my way round the newsgroups.
> >
> > I enter a simple DTML method (using the standard Zope
> > interface), such as:
> >
> > <dtml-var standard_html_header>
> >
> > When I hit "save changes" the object is saved but the hyphen
> > in 'dtml-var'
> > has been changed to what looks like an HTML entity: '&#8722;' (without
> > quotes).  This doesn't do what it should (i.e. include the
> > standard header)
> > since, I guess, the parser doesn't recognise 'dtml&#8722;var'
> > correctly when
> > the method is called.
> >
> > If I then manually replace the entity with a hyphen and hit
> > "save changes"
> > again all is well.  Strangely, if I then paste in another
> > chunk of DTML the
> > same thing happens: hyphens are converted, I change them
> > manually and all is
> > again well.
> >
> > Strangely, it doesn't seem to happen with other tags, such as
> > '<random-tag>'.
> >
> > Can anyone explain what's going on?  Is there an option to
> > turn this off?
> > Is this behaviour known about?  Documented? etc?
> >
> > I'm using Windows 2K with Zope 2.5.  Thanks in advance for any help.
> >
> > Cheers,
> > Robin
> >
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zopÔ #Žnounce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
>