UTF-8 support fix for RDFa files #111

Merged
merged 1 commit into from Sep 10, 2014

Projects

None yet

2 participants

@Dataliberate
Contributor

Error when reading non-ascii characters from .rdfa files.

Fix:

parsers.py
RDFa files list passed directly to RDFAParser.
Change from using ET.fromString() which expects ascii, to an ET.parse which is passed an UTF8 parser

api.py
read_schemas adjusted to send file list instead of list of strings to parser.

Dataliberate UTF-8 support fix for RDFa files
RDFa files list passed directly to RDFAParser change from using
ET.fromString() which expects ascii, to an ET.parse which is passed an
UTF8 parser

read_schemas adjusted to send file list instead of list of strings to
parser.
27e9466
@danbri danbri merged commit 6592183 into schemaorg:master Sep 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment