Groovy web console

subscribe to the feed Subscribe
to this
site
test (via #groovywebconsole)
tweet this snippet Tweet
this
script

test

Published 7 months ago by test
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def originalString = "zj633g2Jx+CfFwl+s48RuC3WkfSpwmjd"

def encoded = java.net.URLEncoder.encode("zj633g2Jx+CfFwl+s48RuC3WkfSpwmjd", "UTF-8")
def decoded = java.net.URLDecoder.decode(encoded, "UTF-8");

println decoded == originalString