mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-27 04:05:58 +00:00
more unicode refactoring
This commit is contained in:
parent
2fb8bf3b6a
commit
12a5ec9f3d
16 changed files with 37 additions and 23 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue