Class 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 Detail

    • 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.