Skip to content

Uri.parse auto replacing '+' with space in queryParameters #49462

Closed
@viJay-beep-code

Description

@viJay-beep-code

Below sample code is auto replacing '+' character in a query parameter with space, when fetching value using queryParameters.

Uri uri = Uri.parse('https://test.com/parse?code=sf+sf+/fd3' );
print(uri.query); //print - code=sf+sf+/fd3
print(uri.queryParameters['code']); //prints - sf sf /fd3

How to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-duplicateClosed in favor of an existing report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions