Skip to main content

🇺🇦 haxadecimal reshared this.


Dear #LazyWeb:

Is there a tool that I can use in a #bash script to sanitize a string for inclusion into a URL parameter (e.g.: "foo bar" becomes "foo+bar" or "foo%20bar")?

#AskFedi

reshared this

in reply to Jonathan Lamothe

perl -MURI::Encode=uri_encode -E'say uri_encode shift' 'foo bar'
This entry was edited (7 months ago)

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.