In most cases this class should not need to be used directly. If you have no special requirements for escaping your URIs, you should use either {@link CharEscapers#uriEscaper()} or{@link CharEscapers#uriEscaper(boolean)}.
When encoding a String, the following rules apply:
RFC 2396 specifies the set of unreserved characters as "-", "_", ".", "!", "~", "*", "'", "(" and ")". It goes on to state:
Unreserved characters can be escaped without changing the semantics of the URI, but this should not be done unless the URI is being used in a context that does not allow the unescaped character to appear.
For performance reasons the only currently supported character encoding of this class is UTF-8.
Note: This escaper produces uppercase hexadecimal sequences. From RFC 3986:
"URI producers and normalizers should use uppercase hexadecimal digits for all percent-encodings."
|
|
|
|
|
|
|
|