Tyler Nally wrote at 2006-11-29 15:49 -0500: > ... >When serving a web page, we get an error that involves the >fetching and display of a document to the browser. Evidently, >it's choking on some unicode bytes when it's expecting plain >ascii.
Unfortunately, this is a *VERY* frequent problem. It occurs when a template mixes unicode and some non unicode string containing non ASCII characters. There are several options: * Do not use unicode at all -- always convert to something like your "site encoding" * Use unicode whenever you handle text * Set Python's "defaultencoding" to your "site encoding" (provided you have a consistent site encoding) Searching the mailing list archives will show you hundreds of similar threads and may give further information. -- Dieter _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )