[Zope] DTML method entry translates hyphens to HTML entity

Tom Nixon tom.nixon@aim23.com
Thu, 4 Apr 2002 13:51:34 +0100


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=20
> Behalf Of Robin Macharg
> Sent: 04 April 2002 13:41
> To: Zope Mailing List
> Subject: [Zope] DTML method entry translates hyphens to HTML entity
>=20
>=20
> Hi, newbie question/problem here - apologies if this is=20
> answered elsewhere
> but I'm just finding my way round the newsgroups.
>=20
> I enter a simple DTML method (using the standard Zope=20
> interface), such as:
>=20
> <dtml-var standard_html_header>
>=20
> When I hit "save changes" the object is saved but the hyphen=20
> 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=20
> standard header)
> since, I guess, the parser doesn't recognise 'dtml&#8722;var'=20
> correctly when
> the method is called.
>=20
> If I then manually replace the entity with a hyphen and hit=20
> "save changes"
> again all is well.  Strangely, if I then paste in another=20
> chunk of DTML the
> same thing happens: hyphens are converted, I change them=20
> manually and all is
> again well.
>=20
> Strangely, it doesn't seem to happen with other tags, such as
> '<random-tag>'.
>=20
> Can anyone explain what's going on?  Is there an option to=20
> turn this off?
> Is this behaviour known about?  Documented? etc?
>=20
> I'm using Windows 2K with Zope 2.5.  Thanks in advance for any help.
>=20
> Cheers,
> Robin
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zop=D4=0B#=AEnounce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20