code: def readfile(filename):
      
      fhandle = open(filename, 'rb')
      data = fhandle.read()
      try:
          data = data.decode('ISO-8859-2')
      except AttributeError:  
          pass
      fhandle.close()
      return data
docs: readfile