java url 的encode和decode

URLEncoder.encode(Base64.encode(baiduPrefix + URLEncoder.encode(keyword.split(":")[i], "utf-8")),"utf-8")

Base64.decode(URLDecoder.decode("aHR0cDovL3dhcC5iYWlkdS5jb20vcz92aXQ9dW5pb24mcm49NSZmcm9tPTMwM2Mmd29yZD2%2B%2FMrC", "utf-8"))

你可能感兴趣的:(java)