Nov-01-2016, 12:28 PM
Snippsat, thanks to respond me.
I tried that:
So, i just changed that: encoding='utf-8' for that: encoding='iso-8859-15' and it works!!!!
I don't know why, but it work.
Thanks snippsat, Ofnuts!
I tried that:
import codecs with codecs.open("E:/ENEL/Modelos/NW201610/DGER.dat", encoding='utf-8') as f: uni = f.read() with codecs.open("iso_out.txt", 'w', encoding='utf-8') as f_out: f_out.write(uni)
Error:newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 1388: invalid start byte
I put my file on attachment.So, i just changed that: encoding='utf-8' for that: encoding='iso-8859-15' and it works!!!!
I don't know why, but it work.
Thanks snippsat, Ofnuts!