Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rejson russian letter problem. #14

Open
Pavel71 opened this issue Nov 14, 2018 · 1 comment
Open

Rejson russian letter problem. #14

Pavel71 opened this issue Nov 14, 2018 · 1 comment
Labels

Comments

@Pavel71
Copy link

Pavel71 commented Nov 14, 2018

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?

@gkorland gkorland added the bug label Jan 6, 2019
@and-sm
Copy link

and-sm commented Jan 10, 2021

Any update please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants