def decodeIntToUnicode(value):
 retVal = value
 if isinstance(value, int):
  try:
   if (value > 255):
    _ = ('%x' % value)
    if ((len(_) % 2) == 1):
     _ = ('0%s' % _)
    raw = hexdecode(_)
    if Backend.isDbms(DBMS.MYSQL):
     retVal = getUnicode(raw, (conf.charset or UNICODE_ENCODING))
    elif Backend.isDbms(DBMS.MSSQL):
     retVal = getUnicode(raw, 'UTF-16-BE')
    elif (Backend.getIdentifiedDbms() in (DBMS.PGSQL, DBMS.ORACLE)):
     retVal = unichr(value)
    else:
     retVal = getUnicode(raw, conf.charset)
   else:
    retVal = getUnicode(chr(value))
  except:
   retVal = INFERENCE_UNKNOWN_CHAR
 return retVal

def decodeIntToUnicode ( value ) : retVal = value if isinstance ( value , int ) : try : if ( value > 255 ) : _ = ( '%x' % value ) if ( ( len ( _ ) % 2 ) == 1 ) : _ = ( '0%s' % _ ) raw = hexdecode ( _ ) if Backend . isDbms ( DBMS . MYSQL ) : retVal = getUnicode ( raw , ( conf . charset or UNICODE_ENCODING ) ) elif Backend . isDbms ( DBMS . MSSQL ) : retVal = getUnicode ( raw , 'UTF-16-BE' ) elif ( Backend . getIdentifiedDbms ( ) in ( DBMS . PGSQL , DBMS . ORACLE ) ) : retVal = unichr ( value ) else : retVal = getUnicode ( raw , conf . charset ) else : retVal = getUnicode ( chr ( value ) ) except : retVal = INFERENCE_UNKNOWN_CHAR return retVal
decodes inferenced integer value to an unicode character .