How to Encode Spaces in URL
Use %20 for path and query safety. In form-style encoding, spaces can become +.
encodeURIComponent("hello world")
// hello%20world
Test now in URL Encoder/Decoder.
Use %20 for path and query safety. In form-style encoding, spaces can become +.
encodeURIComponent("hello world")
// hello%20world
Test now in URL Encoder/Decoder.