Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Conversation

@jberkel
Copy link
Contributor

@jberkel jberkel commented Apr 28, 2014

stringByAddingPercentEscapesUsingEncoding is not reliable

http://simonwoodside.com/weblog/2009/4/22/how_to_really_url_encode/

how's it going? 🍸

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a #define or some way for retrieving this so that it doesn't need to be a magic string in the unit test and can be reused.

@jberkel
Copy link
Contributor Author

jberkel commented Apr 28, 2014

personally not too worried about magic strings in a test context but here you go

stringByAddingPercentEscapesUsingEncoding is not reliable

http://simonwoodside.com/weblog/2009/4/22/how_to_really_url_encode/
@jberkel
Copy link
Contributor Author

jberkel commented May 12, 2014

@elliotchance @itsthejb anything else needed for this PR?

@elliotchance
Copy link
Contributor

I think it's fine, but I don't have permission to merge it in ... sorry.

@itsthejb
Copy link
Owner

Ah, more fun dipping into CF to do things that should Just Work™. Here's another:

http://www.cocoabuilder.com/archive/cocoa/316298-nsurl-path-if-the-path-has-trailing-slash-it-is-stripped.html

Thanks again!

itsthejb pushed a commit that referenced this pull request May 16, 2014
@itsthejb itsthejb merged commit dc9d9c9 into itsthejb:develop May 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants