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 a6ea190 commit fb2cb25Copy full SHA for fb2cb25
1 file changed
lib/core/common.py
@@ -2943,10 +2943,16 @@ def decodeIntToUnicode(value):
2943
if isinstance(value, int):
2944
try:
2945
if value > 255:
2946
+ if Backend.isDbms(DBMS.MSSQL):
2947
+ encoding="UTF-16-LE" if isDBMSVersionAtLeast("2012") else "UTF-16-BE"
2948
+ else:
2949
+ encoding = conf.charset
2950
+
2951
_ = "%x" % value
2952
if len(_) % 2 == 1:
2953
_ = "0%s" % _
- retVal = getUnicode(hexdecode(_), encoding="UTF-16" if Backend.isDbms(DBMS.MSSQL) else None)
2954
2955
+ retVal = getUnicode(hexdecode(_), encoding)
2956
else:
2957
retVal = getUnicode(chr(value))
2958
except:
0 commit comments