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()