Re: [Zope3-Users] TAL expression and ascii

2007-12-14 Thread Marius Gedminas
On Fri, Dec 14, 2007 at 01:20:52AM +0100, Justin Fletcher wrote: I am trying to migrate some data into the ZODB. I am storing this data in a string, and later presenting the data in a ZPT similar to this: span tal:replace=context/content / This works fine for text that does not have any

Re: [Zope3-Users] TAL expression and ascii

2007-12-14 Thread Justin Fletcher
Top replying to my own post... I believe I figured out the problem. In my latest tests I was using unicode(variable, encoding=utf-8) for all of the variables _except_ the return of BeautifulSoup... I my haste I overlooked it... which is silly because I know BeautifulSoup returns UTF-8. After

Re: [Zope3-Users] TAL expression and ascii

2007-12-14 Thread Justin Fletcher
On Fri, 2007-12-14 at 12:23 +0200, Marius Gedminas wrote: On Fri, Dec 14, 2007 at 01:20:52AM +0100, Justin Fletcher wrote: snip There's no magic. Zope 3 strings are Unicode is a convention, and Zope makes it easy to follow by decoding all HTTP request strings into Unicode objects. If

[Zope3-Users] TAL expression and ascii

2007-12-13 Thread Justin Fletcher
Hello all, I am trying to migrate some data into the ZODB. I am storing this data in a string, and later presenting the data in a ZPT similar to this: span tal:replace=context/content / This works fine for text that does not have any characters outside of the ascii range, but for text that