Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTF-8 support fix for RDFa files#111

Merged
merged 1 commit into from Sep 10, 2014
Merged

UTF-8 support fix for RDFa files #111

merged 1 commit into from Sep 10, 2014

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.

None yet

2 participants