If pickled using pickle then following snippet works. but if I have an object dumped using dill, dill.load does not work because dill.load does not accept any encoding argument. is there any way to make this work using dill?
with open(‘py2pickle.p’,'rb') as f
data = pickle.load(f, encoding='latin1')