Closed GoogleCodeExporter closed 8 years ago
Where can I find the test you linked? Is this issue fixed?
Original comment by danielmr...@gmail.com
on 30 Apr 2011 at 8:24
How to test this?
assert str(BNode(u"ü")) == '\\xc3\\x83\\xc2\\xbc'
assert str(BNode(u"ü")) == u"ü"
The problem is still unsolved
Original comment by danielmr...@gmail.com
on 9 May 2011 at 8:25
The test is :
http://code.google.com/p/rdflib/source/browse/test/test_issue084.py
I have to double check if this is fixed now - I think I was undecided what to
do in the end.
Original comment by gromgull
on 9 May 2011 at 8:29
The decision in test_issue084.py is to encode the file before parsing:
rdfxml_utf8 = rdfxml.encode('utf-8')
This works fine if you pass a string to your parser because in
rdflib.parser.create_input_source
if isinstance(data, unicode):
data = data.encode('utf-8')
is checked for "data" but is it checked for File or url input?
Original comment by danielmr...@gmail.com
on 9 May 2011 at 8:42
The test_issue84 documents the agreement that was reached.
File or url input cannot be unicode - since bits crossing the wire have to be
encoded somehow...
Original comment by gromgull
on 13 Jan 2012 at 10:10
Original issue reported on code.google.com by
gromgull
on 2 Feb 2010 at 9:39