mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
more unicode refactoring
This commit is contained in:
@@ -1354,7 +1354,7 @@ def getCommonStart(strings=[]):
|
||||
|
||||
def getUnicode(value):
|
||||
if isinstance(value, basestring):
|
||||
return value if isinstance(value, unicode) else unicode(value, conf.dataEncoding)
|
||||
return value if isinstance(value, unicode) else unicode(value, conf.dataEncoding if 'dataEncoding' in conf else "utf-8")
|
||||
else:
|
||||
return unicode(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user