You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually feeds containing non-utf8 data can be loaded via:
Their XML header that should describe their encoding: <?xml version="1.0" encoding="latin-1"?>. In this case it makes sense to pass raw bytes to the XML parsing library so that it can decode using the information embedded in the data.
Doing a atoma.parse_atom_bytes(latin_1_feed_bytes.decode('latin-1').encode()). Not very elegant but gets the job done.
This is sometimes useful, especially if the bytes downloaded use some strange encoding, which needs to be handled manually before.
The text was updated successfully, but these errors were encountered: