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

charset=UTF-8 does not work #187

Open
ygra opened this issue Feb 1, 2022 · 3 comments
Open

charset=UTF-8 does not work #187

ygra opened this issue Feb 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@ygra
Copy link
Contributor

ygra commented Feb 1, 2022

There's a sample linked from the documentation:

http://magjac.com/graphviz-visual-editor/?dot=digraph%20G%20%7b%0a%20%20charset%3d%22UTF-8%22%0a%20%20%f0%9f%8d%94%20-%3e%20%f0%9f%92%a9%0a%7d

which immediately raises an error, even though as part of the official documentation, that should probably work.

@magjac
Copy link
Owner

magjac commented Feb 4, 2022

I agree this is a bug. I wonder if it's possible that this is an upstream bug which is now fixed. I'll attempt an upgrade.

@magjac magjac added the bug Something isn't working label Feb 4, 2022
@ygra
Copy link
Contributor Author

ygra commented Jul 15, 2023

Judging from the parser source code, could it be that code points outside the BMP aren't even supported? The parser looks at individual UTF-16 code units and doesn't appear to consider surrogates at all.

@magjac
Copy link
Owner

magjac commented Feb 11, 2024

This is a bug in the Graphviz Visual Editor itself, not an upstream bug.

A workaround is to quote the node names like this:

digraph G {
  charset="UTF-8"
  "🍔" -> "💩"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants