java - How i can get encoded(which libriary can do this) "a &" to "a%20%26" without using String.replace() function? -


how can encoded(which java library can this)

a & a%20%26

without using string.replace() function?

url encoder -> a+%26

uriutil.encodepath -> a%20&

urlescapers.urlfragmentescaper().escape -> a%20&

org.apache.catalina.util.urlencoder answer


Comments