def TRANS(p):
 global gTABLE_850_LATIN
 if sabnzbd.WIN32:
  return p.translate(gTABLE_850_LATIN).decode('cp1252', 'replace')
 else:
  return unicoder(p)

def TRANS ( p ) : global gTABLE_850_LATIN if sabnzbd . WIN32 : return p . translate ( gTABLE_850_LATIN ) . decode ( 'cp1252' , 'replace' ) else : return unicoder ( p )
for windows: translate cp850 to pythons latin-1 and return in unicode others: return original string .