diff --git a/lib/core/common.py b/lib/core/common.py index 46ac1b16e..20da2d876 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2590,7 +2590,10 @@ def decodeIntToUnicode(value): try: # http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_ord if Backend.getIdentifiedDbms() in (DBMS.MYSQL,): - retVal = getUnicode(hexdecode(hex(value))) + _ = "%x" % value + if len(_) % 2 == 1: + _ = "0%s" % _ + retVal = getUnicode(hexdecode(_)) elif value > 255: retVal = unichr(value) else: