Search code examples
javauriencoderfc3986

Java and RFC 3986 URI encoding


is there a class to encode a generic String following the RFC 3986 specification?

That is: "hello world" => "hello%20world" Not (RFC 1738): "hello+world"

Thanks


Solution

  • Solved with this:

    http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/util/UriUtils.html

    Method encodeUri