[Zope-dev] Yet more unicode and page template weirdness
Marius Gedminas
marius at gedmin.as
Wed Oct 13 09:50:57 EDT 2010
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="›"/>
> >
> > Are you sure you didn't mean
> >
> > <tal:c content="string:›"/>
>
> 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,
›
is a much more straightforward way to insert that character than
<tal:c content="string:›"/>
Marius Gedminas
--
http://pov.lt/ -- Zope 3/BlueBream consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20101013/571780c0/attachment.bin
More information about the Zope-Dev
mailing list