Please log this in JIRA and attach a patch file.  Thanks.

Jeremy Ford
[EMAIL PROTECTED]


From: Vladimir Figurov <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Developers List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Jetspeed ParameterParser realization give me a broken national char after receive from form with multipart/form-data
Date: Fri, 25 Jun 2004 18:37:14 +0700


Hello, devs...
I'm post message in jetspeed-user - list, but not answers 8(((

*ParameterParser have a broken national char after receive from form with multipart/form-data <http://www.mail-archive.com/jetspeed-user%40jakarta.apache.org/msg12954.html>
http://www.mail-archive.com/jetspeed-user%40jakarta.apache.org/msg12954.html


*There can be you will answer?

ADDITION INFO:

after including into <form ...> additional attribute: accept-charset="ISO-8859-1"
national characters receive is correct! But only from Mozilla-client or Opera-client.
From MS IE 6 (I dont have IE 5.5) - without changes 8(((( - I receive broken chars....


I find method DefaultJetspeedParameterParser.getString(String name), which breaks the coding:
ORIGINAL: public String getString(String name)
{
String str = super.getString(name);
if (str == null) return null;


try
{
return new String(str.getBytes("8859_1"), getCharacterEncoding());
}
catch (Exception e)
{
logger.warn("DefaultJetspeedParameterParser: Exception: " + e.toString());
return str;
}


   }

MY MODIFICATION:
       try
       {
           //from Opera - exception, but on in&out - characters correct
           //from Mozilla - in - correct, out - correct
           //from IE 6 - in INCORRECT, out - correct
           return new String(str.getBytes(), getCharacterEncoding());
       }

--
Vladimir


_________________________________________________________________
Watch the online reality show Mixed Messages with a friend and enter to win a trip to NY http://www.msnmessenger-download.click-url.com/go/onm00200497ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to