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

parser fail at escaped glyphs like � #36

Open
mote0230 opened this issue Feb 18, 2017 · 1 comment
Open

parser fail at escaped glyphs like � #36

mote0230 opened this issue Feb 18, 2017 · 1 comment

Comments

@mote0230
Copy link

mote0230 commented Feb 18, 2017

Data in gephi:
foobar 🌴
Gives when exported to gexf something like:
<attvalue for="v-name" value="foobar &#xd83c;&#xdf34;"></attvalue>

The parser fails at those escaped glyphs and renders nothing, throwing an error in the console.

@raphv
Copy link
Owner

raphv commented May 25, 2017

Hello.
First, sorry for the late reply.
Browsers don't consider your code as valid XML, so Gexf-JS can't do anything as it uses browsers' in-built parsers.
HTML-style numerical entities are not recognized in basic XML, but normally all UTF-8 characters are valid. If you replace it by the glyph itself, it should work (it does on FF at least):
<attvalue for="v-name" value="foobar 🌴"></attvalue>

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

No branches or pull requests

2 participants