NodeGraphQt icon indicating copy to clipboard operation
NodeGraphQt copied to clipboard

Add utf8 encoding to json parsing

Open KwentiN-ui opened this issue 1 year ago • 0 comments

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!

KwentiN-ui avatar Jul 26 '24 13:07 KwentiN-ui