jssimporter / python-jss

python-jss is deprecated. Please see the wiki for alternatives.
GNU General Public License v3.0
102 stars 41 forks source link

'unicode' is not an encoding that ElementTree understands #110

Closed fuzzylogiq closed 2 years ago

fuzzylogiq commented 3 years ago

Switched this to 'UTF_8' as ElementTree returns errors otherwise:

File "/usr/lib/python2.7/xml/etree/ElementTree.py" in encode

  1. return text.encode(encoding)

Exception Type: LookupError at /jssmanifests/xml/0A743BE2-08AD-5DD1-B8D8-4F64FB27483E Exception Value: unknown encoding: unicode

grahampugh commented 2 years ago

Thanks! Merged without testing.... YOLO.