public static String urlEncode(String src) throws UnsupportedEncodingException {
		return URLEncoder.encode(src, Charsets.UTF_8.name()).replace("+", "%20");
	}
public static String urlEncode ( String src ) throws UnsupportedEncodingException { return URLEncoder . encode ( src , Charsets . UTF_8 . name ( ) ) . replace ( "+" , "%20" ) ; }
urlEncode

@param src
微信参数
@return String
@throws UnsupportedEncodingException
编码错误