readlines and numpy loadtxt gives UnicodeDecodeError after upgrade 18.04
Adding encoding='ISO-8859-1' to readlines and loadtxt did the trick.
I have a python script which uses readlines and numpy.loadtxt to load a csv file. It works perfectly fine on my desktop running ubuntu 16.04. On my laptop running 18.04 I get (loading the same file) the following error: UnicodeDecodeError: 'utf8' codec can't decode byte 0xb5 in position 446: invalid start byte
What can I do to make the script working?