Skip to content

phpredis-json not working properly with Spanish #34

@thanhhieu1611

Description

@thanhhieu1611

When I try to use phpredis-json to store spanish text on redis server, the text is not returned its original text.
Example:
Original text: Sabía que ofrecemos
Encoded by json_encode: "Sab\u00eda que ofrecemos
Send to redis server using phpredis-json
Received json: "Sab\u00c3\u00ada que ofrecemos
Decoded by json_decode: "Sabía que ofrecemos

I also try executeRawCommand like below
$this->redisClient()->executeRawCommand(JsonCommands::SET, 'mykeytest', '.', $process_encoded)
$this->redisClient()->executeRawCommand(JsonCommands::GET, 'mykeytest', '.')
It has the same issue.

Do you know what's issue is?
Thank you

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