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

Unicode payloads are not being encoded correctly #88

Open
MartinBellPhilips opened this issue Mar 11, 2024 · 0 comments
Open

Unicode payloads are not being encoded correctly #88

MartinBellPhilips opened this issue Mar 11, 2024 · 0 comments

Comments

@MartinBellPhilips
Copy link

MartinBellPhilips commented Mar 11, 2024

Hello, we encountered a problem where uploading a just under 500KB payload to a json field, consisting mostly of Russian Characters was hitting the 1MB limit. On looking at the web traffic, it looks like the payload is using ascii encoding rather than utf-8. like this '\u041d\u0435 \u0432'

Uploading the same data via requests with ensure_ascii=False on the json convert works fine. It looks correct in the admin portal and publishes fine

json.dumps(content_dictionary,ensure_ascii=False)

Is this a bug or expected? is there a workaround other than not using the sdk?

Im on version: 2.13.1 installed with pip3
Python version 3.11.1
This happens on both macOS and ubuntu

Thank you

Martin

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

No branches or pull requests

1 participant