Hi we have an application using Trinidad (live version uses 1.0.4 but the
problem seems to persist in 1.0.9).

A page contains a text field into which free text can be entered.

Everything (apparently) works fine on Tomcat and windows the user types a
value into the field which may contain a UK currency symbol £ (pound sign)
which is correctly round tripped both on the PPR and non PPR submissions.

In Websphere on linux the behaviour is different and the pound sign followed
by the next character disappears!

I thought this sounds like a character encoding issue so I used a proxy to
examine the submissions

If the JSP page contains the following definition:
        
        <jsp:directive.page contentType="text/html;charset=utf-8"/>

Then the PPR triggered submission contains the following unencoded text:

        ... id_reviewSubForm:ReviewNeeds=£12345 alkjslkjaslj £2932929
asasd...

And the non PPR submission contains UTF-8 encoded text with the leading %C2
before the %A3 double byte pair for the pound sign:

        ... 3AReviewNeeds=%C2%A312345+alkjslkjaslj+%C2%A3292929...

Changing the page to iso-8859-1 changes the encoding for the full submission
to the single character %A3 encoding, but has no effect on the PPR
submission.

        ...3AReviewNeeds=%A312345+alkjslkjaslj+%A32932929+asasd...

With either encoding the pound sign disappears from the page on the next
render apparently after the full submission (ie navigate away and back)

This looks like something somewhere is not interpreting/applying the
encodings correctly?

Shouldn't the submission from the PPR be encoded?

I notice that the form does not specify the accept-charset?

Any help would be appreciated.

Ian

No virus found in this outgoing message.
Checked by AVG - http://www.avg.com 
Version: 8.0.173 / Virus Database: 270.7.5/1703 - Release Date: 02/10/2008
07:46

Reply via email to