Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percent encode reserved characters #3

Merged
merged 1 commit into from
Dec 20, 2012
Merged

Percent encode reserved characters #3

merged 1 commit into from
Dec 20, 2012

Conversation

GentlemanHal
Copy link

This is a simple patch to percent encode all reserved characters using UTF-8 encoding. This fixes the immediate issue raised in #2, but probably needs to be made more configurable as per comments on that issue.

theon added a commit that referenced this pull request Dec 20, 2012
Percent encode reserved characters
@theon theon merged commit 7377360 into NET-A-PORTER:master Dec 20, 2012
@theon
Copy link
Contributor

theon commented Dec 20, 2012

Thanks for the contribution. I've merged it in.

I've also committed some changes to use a custom percent encoding algorithm rather than anything JDK provided to allow customised encoding, for example, encoding spaces as pluses

This has been published to the OSS Sontaype repo: https://oss.sonatype.org/content/groups/public/com/github/theon/scala-uri_2.9.2/0.2-SNAPSHOT/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants