redisjson-py icon indicating copy to clipboard operation
redisjson-py copied to clipboard

Rejson russian letter problem.

Open Pavel71 opened this issue 6 years ago • 1 comments

Hi all! I have a problem with reason and russian letter. I no anything idea, how i can fix it.

hiredis==0.2.0 redis==2.10.6 rejson==0.2.1 six==1.11.0 python =3.6

from rejson import Client, Path

rj = Client(host='localhost', port=6379, db=1, decode_responses=True)

with open('param_dict.json', 'rb') as file:

obj_test = json.load(file)

print(obj_test) {'ID': 1, 'Вес(кг.)': 17, 'Рост(см.)': 100, .....

rj.jsonset('user1', Path.rootPath(), obj_test) print(rj.jsonget('user1'))

{'ID': 1, 'Ð\x92еÑ\x81(кг.)': 17, 'Ð\xa0оÑ\x81Ñ\x82(Ñ\x81м.)':

When i set dict with reason module in redis base, russian letter looking this Ð\x92еÑ\x81(кг.)

Is there a problem?

Pavel71 avatar Nov 14 '18 17:11 Pavel71

Any update please?

and-sm avatar Jan 10 '21 19:01 and-sm