Now I use elixir with my mysql database and the redispy with redis and i select UTF-8 at all the place.
I wanna to get some data writing in chinese like {'Info':‘8折’,'Name':'家乐福'} but what i got is like this:
{'Info': u'8\u6298', 'Name': u'\u5bb6\u4e50\u798f'}
and after i store this dict to redis and get it out by redispy it becomes:
{"Info": "8\u6298", "Name": "\u5bb6\u4e50\u798f"}
I know if i add u' before 8\u6298 and print it it will shou me "8折" but is there a function or another solution to this problem?
The latter looks like json, try decoding it first: