Hello, devs...
I have a one question:

Shinsuke SUGAYA wrote:
According to Java API doc,  getBytes() is "Encodes this String into a sequence of bytes
using the platform's default charset, storing the result into a new byte array.".
So, the platform's default charset is used... Therefore, some regression may occur in
non-English environment. I have submitted this patch in JS1-387. Please see my patch.

where I can download this patch JS1-387 ??????



About way publicated in 
http://www.mail-archive.com/jetspeed-dev%40jakarta.apache.org/msg14271.html,
- it's WRONG way! 8(.

after replace return new String(str.getBytes("8859_1"), getCharacterEncoding());
on
return new String(str.getBytes(), getCharacterEncoding());
The all another INPUT from normal FORM (not multipart...) - is BAD, 8(((


I made decompile Parent - ..turbine.util.parser.DefaultParameterParser and find in 
code:
           public void setRequest(HttpServletRequest req) {
/* 172*/        clear();
/* 174*/        uploadData = null;
/* 176*/        String enc = req.getCharacterEncoding();
/* 177*/        setCharacterEncoding(enc == null ? "US-ASCII" : enc);
/* 180*/        String tmp = null;
/* 182*/        tmp = req.getHeader("Content-type");
/* 183*/        if(TurbineUpload.getAutomatic() && tmp != null && 
tmp.startsWith("multipart/form-data"))

But only I don't make correct this code - I am not confident quality and correctness of work 
декомпилятора

My current realization for correct input Nchars next:
-DefaultParameterParser - don't touch !!!
-in form, in submit button 
onClick="form1.NcharField.value=escape(form1.NcharField.value)"
-add parse method on XxxAction.doXxxaction() for String from 
rundata.getParameters().getString("NcharField",null);
for parsing string type is "qwe-абв"

--
Vladimir


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



Reply via email to