[
http://jira.jboss.com/jira/browse/JBPM-958?page=comments#action_12363887 ]
David Lloyd commented on JBPM-958:
----------------------------------
I think you're seeing a known issue with how Tomcat interacts with different
encodings. The problem is that the HTTP and HTML specs really don't mention anything
about what character set or encoding should be used for URL-encoded values (including GET
parameters and postback values). So different containers default to different settings.
In order to fix this issue, open the deploy/jboss-web.deployer/server.xml in your server
directory (it will be server/default or server/jbpm unless you've customized
something).
Edit the <Connector> entry that references port 8080 and add the following
attribute:
useBodyEncodingForURI="true"
So the whole XML element should look something like this:
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" strategy="ms"
maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443"
acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
useBodyEncodingForURI="true" />
Can't display the non-ISO8859-1 characters!
-------------------------------------------
Key: JBPM-958
URL:
http://jira.jboss.com/jira/browse/JBPM-958
Project: JBoss jBPM
Issue Type: Bug
Components: Web Interface
Affects Versions: jBPM jPDL 3.2
Environment: Windows XP Professional English
JDK 1.5
Eclipse 3.2.2
JPDL Suite 3.2 GA
Reporter: David Chan
Assigned To: David Lloyd
Attachments: input.JPG, rushcode.JPG
When I run the console application, log in as the user bert, then start the sample
process websale, it display a form.
So I input some Chinese characters as task variable, see the attachment(JPG). After click
the save button, what the input has been saved into database and page was rendered again,
but the character displayed is not same as I just inputed.
Please see the second attachment(JPG), I really don't know how the strange character
came out.
I also checked the page encoding, which is all UTF-8.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira