decodeHexValue

This commit is contained in:
Meatballs 2013-06-24 23:45:39 +01:00
parent 5b6c01d739
commit 4595b2c287

View File

@ -3448,7 +3448,11 @@ def decodeHexValue(value):
retVal = retVal.decode("utf-16-le") retVal = retVal.decode("utf-16-le")
except UnicodeDecodeError: except UnicodeDecodeError:
pass pass
elif Backend.isDbms(DBMS.HSQL):
try:
retVal = retVal.decode("utf-16-be")
except UnicodeDecodeError:
pass
if not isinstance(retVal, unicode): if not isinstance(retVal, unicode):
retVal = getUnicode(retVal, "utf8") retVal = getUnicode(retVal, "utf8")