contentful.py
contentful.py copied to clipboard
Unicode payloads are not being encoded correctly
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
Hey @MartinBellPhilips, sorry for the late reply.
Is this still an issue?