Topic: open()/codecs.open()
I want to read a custom file (*.max) en pull some info out of it.
If I open the blahblah.max in notpad and copy-paste it into a variable in my code,
my regular expressions are working fine. But i can't just load it in.
I open the *.max file in notepad and save it as a txt file It doesn't work either.
errors i get when trying open(filename,"rU" and codec.open()):
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 4608: character maps to <undefined>
So any help is welcome.
I deleted the most part of the file and saved it as a txt file to attach it do you can see what i'm talking about.