com.qiniu.api.url.URLEscape Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Qiniu Resource (Cloud) Storage SDK demo for Java
The newest version!
package com.qiniu.api.url;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.net.URLCodec;
public class URLEscape {
public static String escape(String url) throws EncoderException {
URLCodec urlEncoder = new URLCodec("UTF-8");
return urlEncoder.encode(url).replace("+", "%20");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy