gjhiggins/rdflib — Issue #107: RDFXML Parser breaks when handed a unicode object
Author: gjhiggins
Created: 2011-10-19 01:23:02+00:00
State: open

Originally filed by gromgull on 2010-02-02T21:39:05

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