def special_fixer(p):
 if p:
  p = p.replace('\\"', '"')
 if ((not p) or isinstance(p, unicode)):
  return p
 try:
  p.decode('utf-8')
  if (sabnzbd.DARWIN and ('&#' in p)):
   p = fixup_ff4(p)
  return p.decode('utf-8')
 except:
  return p.decode(codepage)

def special_fixer ( p ) : if p : p = p . replace ( '\\"' , '"' ) if ( ( not p ) or isinstance ( p , unicode ) ) : return p try : p . decode ( 'utf-8' ) if ( sabnzbd . DARWIN and ( '&#' in p ) ) : p = fixup_ff4 ( p ) return p . decode ( 'utf-8' ) except : return p . decode ( codepage )
return string appropriate for the platform .