Skip to content

Commit

Permalink
Don't escape unicode characters when saving JSON from Entities. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Jun 13, 2020
1 parent 278a747 commit 9fb3bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public function __set(string $key, $value = null)
// back to the database.
if (($castTo === 'json' || $castTo === 'json-array') && function_exists('json_encode'))
{
$value = json_encode($value);
$value = json_encode($value, JSON_UNESCAPED_UNICODE);

if (json_last_error() !== JSON_ERROR_NONE)
{
Expand Down

0 comments on commit 9fb3bf5

Please sign in to comment.