Open dixego opened 7 years ago
Here is a minimal working example in Coq:
Definition n := 0.
Notation "∀" := n.
It seems like Python's xml.etree.ElementTree.tostring
does not handle Unicode correctly. Here is a minimal working example triggering the error in Python:
# This Python file uses the following encoding: utf-8
import xml.etree.ElementTree
element = xml.etree.ElementTree.Element("")
element.text = "∀"
print(xml.etree.ElementTree.tostring(element, "utf-8"))
I ran into the same problem. Apparently Python's xml.etree.ElementTree
does handle Unicdoe correctly but Coquille fails to pur valid Unicode strings in the XML trees it builds. I made a simple pull request #57 that seems to fix the issue.
It seems that coquille can't parse UTF8 characters (or maybe non-ascii characters?); when trying to use a file with spanish accented characters I get the following error:
however if I remove all accented characters there's no problem anymore. I should note that all accented characters were within comments, not as part of the code.