Open Pavel71 opened 6 years ago
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?
Any update please?
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?