diff options
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index 3ef3254b0..36d633c6e 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -169,7 +169,7 @@ SQL; $valuesTmp['attributes'] = []; } $this->addEntryPrepared->bindValue(':attributes', is_string($valuesTmp['attributes']) ? $valuesTmp['attributes'] : - json_encode($valuesTmp['attributes'], JSON_UNESCAPED_SLASHES)); + json_encode($valuesTmp['attributes'], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); if (static::hasNativeHex()) { $this->addEntryPrepared->bindParam(':hash', $valuesTmp['hash']); @@ -280,7 +280,7 @@ SQL; $valuesTmp['attributes'] = []; } $this->updateEntryPrepared->bindValue(':attributes', is_string($valuesTmp['attributes']) ? $valuesTmp['attributes'] : - json_encode($valuesTmp['attributes'], JSON_UNESCAPED_SLASHES)); + json_encode($valuesTmp['attributes'], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); if (static::hasNativeHex()) { $this->updateEntryPrepared->bindParam(':hash', $valuesTmp['hash']); |
