Class EncodingService
java.lang.Object
fr.paris.lutece.portal.service.html.EncodingService
Encoding utils
-
Method Details
-
encodeUrl
Encode an url string. UsesPROPERTY_URL_ENCODINGproperty andDEFAULT_URI_ENCODINGas default ifPROPERTY_URL_ENCODINGnot found.- Parameters:
strSource- The string to encode- Returns:
- The encoded string
-
encodeUrl
Encode an url string. UsesDEFAULT_URI_ENCODINGas default.- Parameters:
strSource- The string to encodestrProperty- The property used used for the encoding. (ex : lutece.encoding.url )- Returns:
- The encoded string
-
encodeUrl
Encode an url string- Parameters:
strSource- The string to encodestrProperty- The property used used for the encoding. (ex : lutece.encoding.url )strDefaultEncoding- default encoding ifstrPropertycannot be found.- Returns:
- The encoded string
-
getEncoding
Returns the current encoding- Returns:
- The current encoding
-