What about making this change to lib/zope/testing/doctest.py, 'round about line 1141:
=== modified file 'src/zope/testing/doctest.py' --- src/zope/testing/doctest.py 2006-04-11 14:08:08 +0000 +++ src/zope/testing/doctest.py 2007-09-24 20:32:49 +0000 @@ -1138,7 +1138,8 @@ self._name2ft = {}
# Create a fake output target for capturing doctest output. - self._fakeout = _SpoofOut() + import codecs + self._fakeout = codecs.getwriter('utf-8')(_SpoofOut())
#///////////////////////////////////////////////////////////////// # Reporting methods
This way, doctest's print goes to a utf-8 compatible 'terminal'.
What about making this change to lib/zope/ testing/ doctest. py, 'round about
line 1141:
=== modified file 'src/zope/ testing/ doctest. py' testing/ doctest. py 2006-04-11 14:08:08 +0000 testing/ doctest. py 2007-09-24 20:32:49 +0000
self. _name2ft = {}
--- src/zope/
+++ src/zope/
@@ -1138,7 +1138,8 @@
# Create a fake output target for capturing doctest output. getwriter( 'utf-8' )(_SpoofOut( ))
- self._fakeout = _SpoofOut()
+ import codecs
+ self._fakeout = codecs.
#/ /////// /////// /////// /////// /////// /////// /////// /////// /////// /
# Reporting methods
This way, doctest's print goes to a utf-8 compatible 'terminal'.