[Zope3-dev] Unicode in structured text
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Sep 6 18:16:29 EDT 2004
On Friday 03 September 2004 22:45, Craig Ewington wrote:
> File "/Users/crewington/ZopeX3/src/zope/app/renderer/stx.py", line 54,
> in render
> doc = Document()(str(self.context))
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 25-32: ordinal not in range(128)
STX does not support unicode. I guess the best thing to do here would be to
have the STX renderer encode the string before rendering and then decode it
again afterwards.
If noone objects to this, I will apply the fix to the trunk and branch.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-dev
mailing list