encodeURI(), decodeURI(), encodeURIComponent(), decodeURIComponent()

FrameXX

Well-known member
Many times when working with links there's a need to encode or decode percent codes that are used in links as a placeholder for special characters.
AFAIK in JavaScript there are built-in functions for encoding/decoding URIs or their components.
I don't know if Java has similiar built-in functions, but I am sure there needs to be a way to easily do so.

I think MacroDroid would benefit of some action to would return encoded/decoded URI/component.
I could make an action block myself, but it would take a lot of time and would be much, much slower with use of regex than with MacroDroid having that built-in.

I think MacroDroid should separate option between encoding/decoding whole URI or just component, because when encoding component, some special characters like & or ? that are not encoded/decoded in the whole URI are also encoded/decoded.
 
Top