mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
fix for a bug reported by itxx@qq.com (TypeError: encode() takes no keyword arguments)
This commit is contained in:
parent
053c245114
commit
3484a4426b
2 changed files with 2 additions and 2 deletions
|
|
@ -647,7 +647,7 @@ def dataToStdout(data, forceOutput=False):
|
|||
try:
|
||||
# Reference: http://bugs.python.org/issue1602
|
||||
if IS_WIN:
|
||||
output = data.encode('ascii', errors="replace")
|
||||
output = data.encode('ascii', "replace")
|
||||
|
||||
if output != data:
|
||||
warnMsg = "cannot properly display Unicode characters "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue