mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
proper way to handle this (console output has totally different encoding than the page one)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user