codewatchorg / jnlpdownloader

jnlpdownloader is a Python script that takes a URL to a JNLP and downloads all the associated JARs and native libraries. Another Java based tool exists that provides this functionality, but this Python version extends the capabilities to include the ability to authenticate with BASIC, DIGEST, NTLM, or cookie authentication.
BSD 2-Clause "Simplified" License
14 stars 8 forks source link

Fix `unicode` error while reading xml #2

Closed ikus060 closed 8 years ago

ikus060 commented 8 years ago

The line xmltree = ET.ElementTree(ET.fromstring(r.text)) is failling if the XML contains non ascii char. To fix it: xmltree = ET.ElementTree(ET.fromstring(r.content))

codewatchorg commented 8 years ago

Fixed with commit https://github.com/codewatchorg/jnlpdownloader/commit/e749a4ce77256e20fc5ce9edc30d67a246a2c946