Example usage for org.apache.wicket.util.crypt CharEncoding UTF_8

List of usage examples for org.apache.wicket.util.crypt CharEncoding UTF_8

Introduction

In this page you can find the example usage for org.apache.wicket.util.crypt CharEncoding UTF_8.

Prototype

String UTF_8

To view the source code for org.apache.wicket.util.crypt CharEncoding UTF_8.

Click Source Link

Document

Eight-bit Unicode Transformation Format.

Usage

From source file:com.github.cage.cage_e03_wicket.WicketApplication.java

License:Apache License

@Override
protected void init() {
    super.init();

    getMarkupSettings().setDefaultMarkupEncoding(CharEncoding.UTF_8);
    getMarkupSettings().setCompressWhitespace(true);
}

From source file:com.gt.debugconsole.ConsoleApplicationImpl.java

License:Apache License

@Override
protected void init() {

    super.init();

    // markup settings

    getMarkupSettings().setDefaultMarkupEncoding(CharEncoding.UTF_8);

    getRequestCycleSettings().setResponseRequestEncoding("UTF-8");

    // error setting

    if (isDevelopmentConfiguraton()) {
        getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_EXCEPTION_PAGE);
    } else {//  w  w w  .  ja va 2s . c  o  m
        getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
    }
    getExceptionSettings().setAjaxErrorHandlingStrategy(AjaxErrorStrategy.INVOKE_FAILURE_HANDLER);

    registerBuiltInModules();

}