Python Error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 2: ordinal not in range(128)
14 views (last 30 days)
Show older comments
fid=py.open("set1.pkl",'rb');
data=py.pickle.load(fid);
data=cell(data)
1 Comment
Yun Guan
on 10 Nov 2021
hello,have you solved the problem. and I had the same problem about the Unicode decode error in matlab. thanks
Answers (1)
Yongjian Feng
on 17 Aug 2021
As you noticed, this is a python error. Try first using python directly to read, without using matlab.
See Also
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!