[Zope] tal:content="structure... and unicode... How to get it work in Zope 2.10.4 ?

Andreas Jung lists at zopyx.com
Wed Jul 25 08:39:51 EDT 2007



--On 25. Juli 2007 14:34:49 +0200 Andreas Elvers <andreas at work.de> wrote:

> Hi,
>
> I'm having a hard time with page templates using unicode.
>
> Here is a simple example:
>
> - create a page template called dejavu
> Encoding is utf-8. Check also your browser character encoding to be set
> to unicode as well.
>
> - put this into the page template.:
> IMPORTANT: Since this discussion is in ASCII, I can't write the correct
> deja vu string here.
> When testing please use the correct spelling. See
> http://en.wikipedia.org/wiki/Dejavu :-)
>
> <span tal:replace="structure python:u'deja vu'"></span>
>
> When I test this template i will not get deja vu but instead garbled
> characters for e and a.
>
>

Works for me. If you think this is a bug, please file a bugreport including
a unittest that demonstrates the broken behavior.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070725/67ec9cab/attachment.bin


More information about the Zope mailing list