Skip to content

Python: x-www-form-urlencoded payloads aren't url encoded in requests generated code #325

@puroong

Description

@puroong

Describe the bug
x-www-form-urlencoded payloads aren't url encoded in requests generated code
They are encoded in unicode

To Reproduce
Write dummy post request sending x-www-form-urlencoded payload with unicode value and generate python requests code

Expected code snippet and corresponding request
When I pass 테스트, the payload in generated code should be %ED%85%8C%EC%8A%A4%ED%8A%B8 but %uD14C%uC2A4%uD2B8 is given

Screenshots

Screenshot from 2020-08-28 19-09-03
Screenshot from 2020-08-28 19-09-15
Screenshot from 2020-08-28 19-09-57

Additional context
If you have any reference material which might help us debug the problem please add it here:
Add any other context about the problem here.
Version of postman-code-generators/Postman app: 7.3.2

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