mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
fix for a bug reported by itxx@qq.com (TypeError: encode() takes no keyword arguments)
This commit is contained in:
@@ -137,7 +137,7 @@ def unicodeencode(value, encoding=None):
|
||||
try:
|
||||
retVal = value.encode(encoding or UNICODE_ENCODING)
|
||||
except UnicodeEncodeError:
|
||||
retVal = value.encode(UNICODE_ENCODING, errors="replace")
|
||||
retVal = value.encode(UNICODE_ENCODING, "replace")
|
||||
return retVal
|
||||
|
||||
def utf8encode(value):
|
||||
|
||||
Reference in New Issue
Block a user