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:
|
try:
|
||||||
sys.stdout.write(data)
|
sys.stdout.write(data)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
sys.stdout.write(data.encode(kb.pageEncoding or conf.dataEncoding))
|
sys.stdout.write(data.encode(conf.dataEncoding))
|
||||||
finally:
|
finally:
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user