-
Notifications
You must be signed in to change notification settings - Fork 34
Unicode / Encoding issues #19
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
Comments
I did manage to get around it: In python I am able to restore the string by encoding as follows: and similarly in .NET after fetching with JSON.MGET
|
Having problems as well.
When I remove the duplicate \ and decode the result |
I believe there is now an option to decode special character with a no-escape option in the JSON.GET command as said in the replies of this issue. Maybe we could add it as an option for the python command? I can try to add it if wanted. |
@bentsku if you can submit a PR that will be great |
I'm facing some encoding issues with the client;
The problem are when using non ascii characters, more precisely æøåÆØÅ etc.
client.jsonarrinsert('test', Path('.items'), 0, {'company': 'Åre', 'destination': 'ÅS', 'origin': 'LØR'})
client.jsonget('test')
This does not look correct?
{"name":"test111","items":[{"company":"\u00c3\u0085re","destination":"\u00c3\u0085S","origin":"L\u00c3\u0098R"},]}
What i had expected:
{"name":"test111","items":[{"company":"\u00c5re","destination":"\u00c5S","origin":"L\u00d8R"},]}
or
{"name":"test111","items":[{"company":"\xc5re","destination":"\xc5S","origin":"L\xd8R"},]}
If i save as strings they appear to get the correct encoding, but then my array elements are turned in to strings instead of objects
If I'm doing it wrong, I'd be greatful for any tips! :)
The text was updated successfully, but these errors were encountered: