mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 06:01:29 +00:00
Patch for an Issue #767
This commit is contained in:
@@ -161,7 +161,7 @@ def stdoutencode(data):
|
||||
else:
|
||||
retVal = data.encode(sys.stdout.encoding)
|
||||
except:
|
||||
retVal = data.encode(UNICODE_ENCODING)
|
||||
retVal = data.encode(UNICODE_ENCODING) if isinstance(data, unicode) else data
|
||||
|
||||
return retVal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user