Skip to content

Unicode payloads are not being encoded correctly #88

@MartinBellPhilips

Description

@MartinBellPhilips

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions