cloudevents / cloudevents/sdk-python
Method to_structured can't control NON-ASCII chars
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 342
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Expected Behavior
I am using to_structured() but there are non-ascii symbols that I want to have included. I cannot alter its behaviour.
Actual Behavior
to_structured method returns them in the form of '\u00'
Steps to Reproduce the Problem
- Try to pass an event containing a non-ascii symbol (Ø, ü, etc.)
- Print the result
Specifications
- Python 3.7.15
- cloudevents 1.7.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Python SDK's to_structured() method and reproduce the issue with event values such as Ø and ü. Inspect how it serializes non-ASCII characters and define the expected controllable behavior; done means the output follows that behavior without breaking existing structured-event serialization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100