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
unicode support in rejson #35
Comments
@wgjak47 the data should be encoded as UTF-8 IIRC. |
It looks like the data is encoded with 'ISO-8859' not utf-8... And I have tried to encoded the data with utf-8, but it doesn't work:
Any example? |
I have the same problem, can you show me how to decode? |
look like it doesn't work |
I found the reson, In json_object.c/_JSONSerialize_StringValue(Node *n, void *ctx), for any char not in ascii, it just response in hex:
|
I've just fixed this issue in master. Can you tell me if this works for you? |
It works! Thank you. @mnunberg |
Guys, here asking for a recommendation. Do you know about any nodejs module or any trick that could handle that without much overhead ? |
@mnunberg thank you jesus... This was a memory leak until this fix was put into place. Why such a drastic difference for something such as NOESCAPE? here is what I did using IOREDIS
|
Just to show you guys how this was causing a memory leak... I was using a read for an internal state object and that would be used as a write down the line. here was the result. YIKES!!!
so needless to say, thanks for the fix. |
Here is the JAVA(JReJSON) solution: JReJSON redisClient = new JReJSON(redisHost, redisPort); |
Should work now see:
|
I'm trying to store a json with some chinese character in redis with rejson like this:
As you can see the value "测试" convert to "\u00e6\u00b5\u008b\u00e8\u00af\u0095" when using JSON.GET... It looks like rejson didn't support unicode yet...
The text was updated successfully, but these errors were encountered: