Save the original utf-8 text and not in unicode format, inside JsonProperty #748
Unanswered
alexiosgkikas
asked this question in
Q&A
Replies: 1 comment
-
Thank you for bringing this up, happy to review and consider a PR on this change. The only hesitation I would have against |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
I am using the neomodel library to save some nodes in a Neo4j database. I have defined a class (type of NodeStructure) with one JSONProperty.
When I try to save a new node or update it, if this property contains utf-8 characters(i.e "τεστ"), it will be saved with unicode format (i.e. "\u03b1\u03bb\u03b5\u03be").
Upon retrieval of the nodes(with neomodel library), the text is back to normal.
But, when I open the Neo4j Desktop to navigate on the database, the text is shown in unicode format. I would like to see the original text, which is more user-friendly.
By altering the JSONProperty function deflate, as shown below, I might be able to get the desired functionality.
Note, that the text will be preserved exactly as it is if I use the StringProperty.
My questions:
How to Reproduce
Beta Was this translation helpful? Give feedback.
All reactions