Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.
This repository was archived by the owner on Jul 6, 2020. It is now read-only.

JSON output: please add right encoding #38

Description

@gubi

I encountered a problem with the json output: accented vowels and apostrophes were parsed as "\u00e0" or "\u2019".
I solved simply by adding the native php json_encode() suffix JSON_FORCE_OBJECT|JSON_UNESCAPED_UNICODE in

if (!is_string($json)) $json = json_encode($json);

like this:

if (!is_string($json)) $json = json_encode($json, JSON_FORCE_OBJECT|JSON_UNESCAPED_UNICODE);

Please integrate it in your code ;)

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions