encodeURIComponent
function. The string encoded with this method can be unencoded using the JavaScript decodeURIComponent
function. This method is an alternative (slower and bigger) to {@link #getTransportableStringLiteral(String)}to transport texts to the client.
The encoded Java String is not a string literal. The following example encloses the String
as a literal:
String code = "\"" + encodeURIComponent(someText) + "\"";
String
to encode.
@return the encoded text.
|
|