From ac0b5e6dbc7a73cd5c85ad001853d027ab2427b6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 17 Jan 2011 10:27:36 +0000 Subject: [PATCH] proper way to handle this (console output has totally different encoding than the page one) --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 1baa4aebf..ffd0eb8ec 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -425,7 +425,7 @@ def dataToStdout(data, forceOutput=False): try: sys.stdout.write(data) except UnicodeEncodeError: - sys.stdout.write(data.encode(kb.pageEncoding or conf.dataEncoding)) + sys.stdout.write(data.encode(conf.dataEncoding)) finally: sys.stdout.flush()