Re: Yet more unicode and page template weirdness

Marius Gedminas <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <20101013135057.GA18531@platonas>
On Wed, Oct 13, 2010 at 01:56:58PM +0100, Chris Withers wrote:
> On 13/10/2010 13:47, Marius Gedminas wrote:
> > On Wed, Oct 13, 2010 at 08:53:08AM +0100, Chris Withers wrote:
> >> In Zope 2.12, try putting the following in a TTW ZPT:
> >>
> >> <tal:c content="&#8250;"/>
> >
> > Are you sure you didn't mean
> >
> >    <tal:c content="string:&#8250;"/>
> 
> Ah, d'oh! Thanks for the catch!
> 
> > The way XML works, all entities in an attribute value are decoded before
> > being interpreted, so your TALES interpreter gets an expression
> > u'\u203a' which it then fails to interpret.
> 
> Makes sense, thanks! What about entities outside of attributes?

You're absolutely right, 

  &#8250;

is a much more straightforward way to insert that character than

  <tal:c content="string:&#8250;"/>

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3/BlueBream consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAky1uUEACgkQkVdEXeem148cmACggnxxVYMVlTg2ffYFiV7yRllK
1Q0An1aljb6RXR7KFSCUbPtGsQyfXYat
=aLZB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.