gjhiggins/rdflib — Issue #162: UnicodeEncodeError
Author: gjhiggins
Created: 2011-10-19 01:33:27+00:00
State: open

Originally filed by fertap...@gmail.com on 2011-03-22T17:14:25

RDFLib version 3.1.0

What steps will reproduce the problem?
1. Choose some RDF file ("example.rdf") with non-ascii characters such as "á, é"
2. Parse the file with a graph instance: graph.parse("example.rdf")
3. You should get an UnicodeEncodeError

I debug it by myself...in term.py all the self.encode() should be self.encode("unicode-escape")
Regards