Re: windows utf8 & lxml

2016-12-27 Thread Steve D'Aprano
On Tue, 20 Dec 2016 10:53 pm, Sayth Renshaw wrote: > content.read().encode('utf-8'), parser=utf8_parser) > > However doing it in such a fashion returns this error: > > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: > invalid start byte That tells you that the XML file

Re: windows utf8 & lxml

2016-12-26 Thread Stefan Behnel
Hi! Sayth Renshaw schrieb am 20.12.2016 um 12:53: > I have been trying to get a script to work on windows that works on mint. The > key blocker has been utf8 errors, most of which I have solved. > > Now however the last error I am trying to overcome, the solution appears to > be to use the .dec

Re: windows utf8 & lxml

2016-12-21 Thread Peter Otten
Sayth Renshaw wrote: > On Tuesday, 20 December 2016 22:54:03 UTC+11, Sayth Renshaw wrote: >> Hi >> >> I have been trying to get a script to work on windows that works on mint. >> The key blocker has been utf8 errors, most of which I have solved. >> >> Now however the last error I am trying to o

Re: windows utf8 & lxml

2016-12-21 Thread Sayth Renshaw
On Tuesday, 20 December 2016 22:54:03 UTC+11, Sayth Renshaw wrote: > Hi > > I have been trying to get a script to work on windows that works on mint. The > key blocker has been utf8 errors, most of which I have solved. > > Now however the last error I am trying to overcome, the solution appear

windows utf8 & lxml

2016-12-20 Thread Sayth Renshaw
Possibly i will have to use a different method from lxml like this. http://stackoverflow.com/a/29057244/461887 Sayth -- https://mail.python.org/mailman/listinfo/python-list

windows utf8 & lxml

2016-12-20 Thread Sayth Renshaw
Hi I have been trying to get a script to work on windows that works on mint. The key blocker has been utf8 errors, most of which I have solved. Now however the last error I am trying to overcome, the solution appears to be to use the .decode('windows-1252') to correct an ascii error. I am usi