Module org.apache.wicket.extensions
Class CharSetUtil
java.lang.Object
org.apache.wicket.extensions.util.encoding.CharSetUtil
Utility class. Initialize Locale to character encoding mapping based on defaults and optionally a
properties file CharSetMap.CHARSET_RESOURCE to be found in WEB-INF.
- Author:
- Jonathan Locke, Juergen Donnerstag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getEncoding
(RequestCycle cycle) Based on the Session's locale determine the associated character encoding.
-
Constructor Details
-
CharSetUtil
public CharSetUtil()Constructor
-
-
Method Details
-
getEncoding
Based on the Session's locale determine the associated character encoding.- Parameters:
cycle
-- Returns:
- Char set to use for response.
-