Skip to content

UTF-8 support fix for RDFa files#111

Merged
danbri merged 1 commit intoschemaorg:masterfrom
Dataliberate:master
Sep 10, 2014
Merged

UTF-8 support fix for RDFa files#111
danbri merged 1 commit intoschemaorg:masterfrom
Dataliberate:master

Conversation

@Dataliberate
Copy link
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.

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.
danbri added a commit that referenced this pull request Sep 10, 2014
UTF-8 support fix for RDFa files
@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants