getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Ahmed Ashour
Dear all, I think something is wrong with parsing parameters for get requests with binary encoding, although request.getCharacterEncoding() is null, the output is different in red hat linux, consider the following test case: Servlet code protected void

Re: getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Filip Hanik - Dev Lists
getBytes() is deprecated for the reason that different VMs/OSs have different default encoding. could that be the cause of your problem? what if you try getBytes(ISO-8859-1) on both platforms, do you still get diff results? Filip Ahmed Ashour wrote: Dear all, I think something is

Re: getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Ahmed Ashour
Dear Filip, That solves it, many many thanks. Just a comment if others went into same problem: * request.setCharacterEncoding(ISO-8859-1); does not solve the problem * getBytes() is not deprecated, it uses the platform's default charset instead. Thanks again, Ahmed Ashour