Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpredis-json not working properly with Spanish #34

Open
thanhhieu1611 opened this issue Aug 24, 2022 · 0 comments
Open

phpredis-json not working properly with Spanish #34

thanhhieu1611 opened this issue Aug 24, 2022 · 0 comments

Comments

@thanhhieu1611
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant