【简记】Groovy/Jenkins脚本中urlencode与urldecode
def plaintext = "测试字符"
def encode = java.net.URLEncoder.encode(title, "UTF-8")
println 'encode='+encode
def decode = java.net.URLDecoder.decode(encode, "UTF-8")
println 'decode='+decode
def plaintext = "测试字符"
def encode = java.net.URLEncoder.encode(title, "UTF-8")
println 'encode='+encode
def decode = java.net.URLDecoder.decode(encode, "UTF-8")
println 'decode='+decode