public static Charset getTemplateOutputEncoding ( Configuration configuration , String suffix ) { final String enc = PropertiesHelper . getValue ( configuration . getProperties ( ) , MvcFeature . ENCODING + suffix , String . class , null ) ; if ( enc == null ) { return DEFAULT_ENCODING ; } else { return Charset . forName ( enc ) ; } }
Get output encoding from configuration .