Skip to content

Don't use plusses in percent encoding - #110

Merged
marcprux merged 1 commit into
skiptools:mainfrom
dfabulich:percent-encoding
Apr 19, 2026
Merged

marcprux merged 1 commit into
skiptools:mainfrom
dfabulich:percent-encoding

Conversation

@dfabulich

@dfabulich dfabulich commented Apr 18, 2026 •

Copy link
Copy Markdown
Member

In this PR, I'm disabling spaceToPlus and plusToSpace on UrlEncoderUtil.encode/decode, to match Swift's behavior.

Skip Pull Request Checklist:


  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

@cla-bot cla-bot Bot added the cla-signed label Apr 18, 2026
@marcprux

Copy link
Copy Markdown
Member

Thanks. I'm mildly nervous about this, since we were clearly working around it with explicit test SKIP blocks, when the obvious (at least in hindsight) would have been to simple set spaceToPlus/plusToSpace correctly.

But since it is unarguably correct to match Swift's behavior, I'll merge it. Let's just keep an eye out for potential downstream quirks that might arise (e.g., Android-specific networking code that might be expecting + and choke on %20).

@marcprux
marcprux merged commit 360a638 into skiptools:main Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants