使用HTTPClient效果很好。
protected static String createUrl(List<NamevaluePair> pairs) throws URIException{ HttpMethod method = new GetMethod("http://example.org"); method.setQueryString(pairs.toArray(new NamevaluePair[]{})); return method.getURI().getEscapedURI();}


