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
Traceback (most recent call last):
File "Test.py", line 17, in <module>
print( PyQuery(_xml) )
File "C:\Python38\lib\site-packages\pyquery\pyquery.py", line 217, in __init__
elements = fromstring(context, self.parser)
File "C:\Python38\lib\site-packages\pyquery\pyquery.py", line 57, in fromstring
result = getattr(etree, meth)(context)
File "src\lxml\etree.pyx", line 3237, in lxml.etree.fromstring
File "src\lxml\parser.pxi", line 1891, in lxml.etree._parseMemoryDocument
ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
Is this a BUG ?
The text was updated successfully, but these errors were encountered:
Hi:
I'm using PyQuery to extract information from xml files. But It seems PyQuery() is not act as excepted:
This Code Runs OK:
But If i Trimed the _xml , It raised Exception:
Is this a BUG ?
The text was updated successfully, but these errors were encountered: