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 c6a8fee commit 70215a9Copy full SHA for 70215a9
1 file changed
lib/core/common.py
@@ -2809,14 +2809,11 @@ def decodeIntToUnicode(value):
2809
2810
if isinstance(value, int):
2811
try:
2812
- # http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord
2813
- if Backend.getIdentifiedDbms() in (DBMS.MYSQL,):
+ if value > 255:
2814
_ = "%x" % value
2815
if len(_) % 2 == 1:
2816
_ = "0%s" % _
2817
- retVal = getUnicode(hexdecode(_))
2818
- elif value > 255:
2819
- retVal = unichr(value)
+ retVal = getUnicode(hexdecode(_), encoding="UTF-16" if Backend.isDbms(DBMS.MSSQL) else None)
2820
else:
2821
retVal = getUnicode(chr(value))
2822
except:
0 commit comments