Neo4j SDN4 和 unicode 符号

Neo4j SDN4 and unicode symbols

我在我的 Neo4j 数据库中使用 SDN4 存储以下字符串:

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.

但是在我的 Neo4j 节点内部存储之后,我有以下内容:

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.

在我的 ogm.properties 中,我有以下属性:

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

为什么我有 � 而不是普通字符?

本地,在我的 Windows 10 机器上我没有看到这样的问题。这个问题只出现在我的 Linux openSUSE 42.1 暂存环境中。

您的原始字符串没有 Neo4j 期望的 UTF-8 编码,因此不在 UTF-8 中的字符被替换为 Replacement Character、U+FFFD。