Skip to content

line 374 in system/Entity.php json_encode add JSON_UNESCAPED_UNICODE #3059

Description

@leo-at-itartpro

Describe the bug
When saving stuff to database, using $entity->property, with property being cast as json-array it does a poor job of saving for russian, and I suspect other languages. Is it possible to set line 374 in system/Entity.php to this: json_encode($value, JSON_UNESCAPED_UNICODE);

Add JSON_UNESCAPED_UNICODE to handle different languages? Otherwise it takes a lot of space in database when each letter is represented as \u043d (for example)

CodeIgniter 4 version
4.0.3

Affected module(s)
CodeIgniter\Entity

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions