cloudevents / cloudevents/sdk-python

Method to_structured can't control NON-ASCII chars

Open
#206 5 comments 1 reaction 0 assignees View on GitHub

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

  1. Try to pass an event containing a non-ascii symbol (Ø, ü, etc.)
  2. Print the result

Specifications

  • Python 3.7.15
  • cloudevents 1.7.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.