Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca427af commit 8617fe0Copy full SHA for 8617fe0
1 file changed
lib/core/common.py
@@ -3209,16 +3209,11 @@ def _(value):
3209
if value.lower().startswith("0x"):
3210
value = value[2:]
3211
value = value.decode("hex")
3212
- if len(value) > 1 and value[1] == '\x00':
+ if Backend.isDbms(DBMS.MSSQL):
3213
try:
3214
value = value.decode("utf-16-le")
3215
except UnicodeDecodeError:
3216
pass
3217
- elif value and value[0] == '\x00':
3218
- try:
3219
- value = value.decode("utf-16-be")
3220
- except UnicodeDecodeError:
3221
- pass
3222
if not isinstance(value, unicode):
3223
value = value.decode("utf8", "replace")
3224
return value
0 commit comments