was wrong about this one (just now tested on a real site)

This commit is contained in:
Miroslav Stampar 2011-01-17 11:00:09 +00:00
parent ac0b5e6dbc
commit d225c5c9aa

View File

@ -425,7 +425,7 @@ def dataToStdout(data, forceOutput=False):
try: try:
sys.stdout.write(data) sys.stdout.write(data)
except UnicodeEncodeError: except UnicodeEncodeError:
sys.stdout.write(data.encode(conf.dataEncoding)) sys.stdout.write(data.encode(kb.pageEncoding or conf.dataEncoding))
finally: finally:
sys.stdout.flush() sys.stdout.flush()