Skip to content

user_data deforms non-latin letters when passed in #1579

@DoctorEvil92

Description

@DoctorEvil92

I'm trying to pass some data into a handler function with user_data, I hope I'm doing it correctly. So, the data that is passed is originally:
{'pagination_state_key': 'run0https://www.supermaxi.com/catalogo/.json', 'desired_store_name': 'Supermaxi El Jardín'}

And what I get after loading it with dict(context.request.user_data) is this:
{'pagination_state_key': 'run0https://www.supermaxi.com/catalogo/.json', 'desired_store_name': 'Supermaxi El JardÃ\xadn'}

This is the log attached.

Image I'm not sure if I'm doing something wrong, the encoding on the original string should be utf-8 and seems to work fine by itself.

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions