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

Add utf8 encoding to json parsing #430

Open
KwentiN-ui opened this issue Jul 26, 2024 · 0 comments
Open

Add utf8 encoding to json parsing #430

KwentiN-ui opened this issue Jul 26, 2024 · 0 comments

Comments

@KwentiN-ui
Copy link

KwentiN-ui commented Jul 26, 2024

First of all, thank you for this awesome project!
I just came across your NodeGraph().set_context_menu_from_file Method, which is very handy. I have one small issue though.
My application is developed in German, so ÄÖÜ and other Non-ASCII characters don't render correctly in the context menu. I fixed this in my local version of this project by passing

# graph.py:910-911
with file.open(encoding="utf8") as f:
    data = json.load(f)

Before:
before
After:
after

To my knowledge, this should not have an effect on other parts of the code.

Thank you for your time!

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

1 participant