Character sets
By default the engine uses the character set specified by the OS and the character set of the database. To operate correctly the engine should run in UTF-8. The defaults can be altered with the following steps:
user profile
Open the .bash_profile of the user engine and edit its $LANG environment variable. Set it to
export LANG=en_US.UTF-8
# Java 7
export LC_ALL=en_US.UTF-8
or any other UTF-8 supporting language.
database
alter table <TABLE> convert to character set utf8;
web.xml
Extend the web.xml with
<filter>
<filter-name>EncodingFilter</filter-name>
<filter-class>
nl.crossmarx.core.wgui.EncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>EncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
engine
Change etc/environment.properties property into
page.encoding=utf-8
JDBC configuration
etc/mysql.properties
useUnicode=true
characterEncoding=utf8