http发送请求,路径包含汉字,需要编码
import java.net.URLEncoder;
public String encodeURL(String source, String coding) {
String target;
try {
target = URLEncoder.encode(source, coding);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
return target;
}
08-12
390