Why you use 5.01. There are bugfixes within the 5.1 version, maybe your problem disapear.
Hi initial poster,
could you provide more details on your workflow? What kind of applications do you use? Servlets on both sides?
Especially, you might set encodings yourself before writing data to the response. Take a look at this method: