RDFLib/rdflib — Issue #102: RDFXML Parser breaks when handed a unicode object
Author: gjhiggins
Created: 2012-02-20 08:32:47+00:00
State: open

gromgull, 2010-02-02T21:39:05.000Z

With this error:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xf4' in
position 328: ordinal not in range(128)

See http://code.google.com/p/rdflib/source/browse/trunk/test/test_issue084.py

(named after the issue for N3 parsing, which is fixed).

The question is if we want to let you pass a unicode object with xml string
to the parser?

Passing utf8 encoded strings works fine