Павел Мишагин
2018-11-14 14:13:31 UTC
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)
# Print
# {'ID': 1, 'ÐеÑ(кг.)': 17, 'РПÑÑ(ÑÐŒ.)': 100, .....
rj.jsonset('user1', Path.rootPath(), obj_test)
print(rj.jsonget('user1'))
# Print
# {'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?
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?
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+***@googlegroups.com.
To post to this group, send email to redis-***@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.