Search code examples
neo4jcharacter-encodingopensusespring-data-neo4j-4neo4j-ogm

Neo4j SDN4 and unicode symbols


I'm storing the following string with SDN4 in my Neo4j database:

Panda Antivirus Pro is the brand’s entry level security product: a powerful antivirus tool that protects your system in an effective – and unobtrusive – way.

but after the storing inside of my Neo4j node I have a following:

Panda Antivirus Pro is the brand���s entry level security product: a powerful antivirus tool that protects your system in an effective ��� and unobtrusive ��� way.

In my ogm.properties I have a following properties:

driver=org.neo4j.ogm.drivers.bolt.driver.BoltDriver
URI=bolt://neo4j:neo4j@localhost

Why I have � there instead of a normal characters ?

Locally, at my Windows 10 machine I don't see such issue.. the issue only appears at my Linux openSUSE 42.1 staging environment.


Solution

  • Your original string did not have UTF-8 encoding, which neo4j expects, so the characters not in UTF-8 were replaced by the Replacement Character, U+FFFD.