In Java, I need to use HTTP Post to send request to server, but if in the parameter of the URL contains some special character it throws below Exception
try guava
use com.google.common.net.UrlEscapers
it works fine with chinese
like this:
Escaper escaper = UrlEscapers.urlFragmentEscaper(); String result = escaper.escape(yoururl);