Skip to content

Rejson russian letter problem. #14

Description

@Pavel71

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions