Discussion:
[redis-db] Reason Russian letter
Павел Мишагин
2018-11-14 14:13:31 UTC
Permalink
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?
--
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.
Continue reading on narkive:
Loading...