#How to encode the spaces in url using url:encode method?

1 messages · Page 1 of 1 (latest)

quasi reef
#

Hi team,

How we can only encode the spaces in a url?

Thank you in advance.

queen karma
#

Hi @quasi reef
What's the use case here? If you want to just replace the spaces with another character, you can use the regex:replace function, right? the url:encode function cannot encode specific characters. It encodes the whole string.

quasi reef
#

@queen karma Yes I have used the regex:replace