Am Don, 2002-09-26 um 23.58 schrieb Florent Guillaume:
> Andreas Kostyrka  <[EMAIL PROTECTED]> wrote:
> > So how are these Unicode changes supposed to work? Are non-ascii
> > characters forbidden now? And how do I get UTF-8 text into Zope?
> 
> If all your code outputs is plain python strings, ZPublisher passes them
> as-is to the client.
Well, my index_html produces a plain string with 8bit characters. 
(I've verified this by trying to add u'' to it, and got an exception)

Now in some cases ZPublisher adds the UTF-8 content-type and some it
don't. Directly calling (via browser) index_html does not mark the
content as UTF-8. return context.index_html(context,request) marks the
content up as UTF-8 although index_html does return a plain old string.
And it does nothing to recode the string in UTF-8, ...

Andreas
-- 
Andreas Kostyrka <[EMAIL PROTECTED]>


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

Reply via email to