> For PageTemplates, the various blocks produced by the template and
> python are sent to a StringIO-like object, which is responsible for
> converting them into a coherent thing when its getvalue() method is
> called. At the moment it doesn't deal very well mixed Unicode and
> non-Unicode strings so the reported failures don't surprise me.

BTW an example of a failing PageTemplate is:

  <span tal:replace="python:u'hello'" /> café

Because, deep inside StringIO, it tries to do something like:
        ''.join([u'hello', ' café'])

Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:[EMAIL PROTECTED]

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to