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