Lxml Encoding Errors On Production
I am trying to process some data with lxml. It works fine on my development server, but on production the following code: parser = etree.XMLParser(encoding='cp1251') throws: Fil
Solution 1:
There seems to be a bug open about this behavior on OS X where specifying encoding="cp1252" resulted in the error above. The comments also specify other systems as affected: https://bugs.launchpad.net/lxml/+bug/707396
Have you tried specifying other encoding types? (to see if it's just a problem with cp1252)
Post a Comment for "Lxml Encoding Errors On Production"