users@glassfish.java.net

Re: Can't set charset to UTF-8

From: Gerald Holl <gerald_at_holl.co.at>
Date: Tue, 13 Nov 2007 22:26:53 +0100

Ryan Lubke wrote:
> I'm guessing it's this snippet in Woodstock's UploadFilter (present in
> the most recent set of stacktraces):
>
> if (!FileUpload.isMultipartContent(req)) {
> chain.doFilter(request, response);
> return;
> }
>
> If the request isn't multipart/form-data, the UploadFilter invokes the
> filter chain.
> If it is, then further in the processing setRequestEncoding is called.

I took a look at the woodstock UploadFilter source and the character
encoding is set to UTF-8 if request.getCharacterEncoding() returns null.
So I don't understand why the characters are broken.

Gerald