Class CharSetUtil
- java.lang.Object
-
- org.apache.wicket.extensions.util.encoding.CharSetUtil
-
public class CharSetUtil extends Object
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
Constructors Constructor Description CharSetUtil()
Constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getEncoding(RequestCycle cycle)
Based on the Session's locale determine the associated character encoding.
-
-
-
Constructor Detail
-
CharSetUtil
public CharSetUtil()
Constructor
-
-
Method Detail
-
getEncoding
public static String getEncoding(RequestCycle cycle)
Based on the Session's locale determine the associated character encoding.- Parameters:
cycle
-- Returns:
- Char set to use for response.
-
-