encoding does not work properly when default encoding is not UTF-8:
https://jsftemplating.dev.java.net/issues/show_bug.cgi?id=19
Issue #|19
Summary|encoding does not work properly when default encoding
|is not UTF-8
Component|jsftemplating
Version|current
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P2
Subcomponent|Other
Assigned to|cchidamb
Reported by|kenpaulsen
------- Additional comments from kenpaulsen_at_dev.java.net Thu May 17 20:21:28 +0000 2007 -------
Create a text field, type some characters such as: кодировкеñ
Submit the form and you'll see that the same answer does not come back.
To work-a-round this issue, you can add a sun-web.xml to your WEB-INF/ directory (for GlassFish) that looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 Servlet 2.3//EN'
'
http://www.sun.com/software/sunone/appserver/dtds/sun-web-app_2_3-0.dtd'>
<sun-web-app>
<locale-charset-info>
<parameter-encoding default-charset="UTF-8" />
</locale-charset-info>
</sun-web-app>