response character encoding
when i submit a form to a servlet, the response encoding defaults to ISO-8858-1 even though my jsp page's charset is all cp1256 and the -Dfile.encoding is set to cp1256. i know i can set the response encoding using respose.setCharacterEncoding("cp1256") etc but how do i change the default. Please help
[310 byte] By [
samhozeea] at [2007-10-2 5:52:59]

yep....
It doesn't matter what the file.encoding is.. cuz it's not files, it's servlets.
I'm not sure there's a way to set the default. I don't recall seeing any API method for doing that. One way I know is to use filters on all the pages. It's really somewhat sad that it's never been added to browsers to pass back the encoding of the page as a header to be processed automatically from the servlet container.