velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai Yoshida <>
Subject Re: problem with latin2
Date Wed, 19 Jan 2005 13:05:41 GMT
Hi guys,

> The problems is often that the text goes trough an extra charset
> encodings/decodings when you try to examine it for debugging purposes,
> and this can obliterate the traces of the root problem. To spot where
> exactly the problem happens, print (e.g. log) the text on various phases
> (e.g. when you get the request parameters) with *character codes*, that
> is, with numbers. Then check if the printed UCS codes are OK at that
> point. (As a catalog of UCS codes you may use "UniBook".)

Adding to Daniel's comment, as it is stated in the javadocs, "This
method must be called prior to reading request parameters or reading
input using getReader()."  So the only feasible solution I find with
Struts is using a Filter.

> >>
> >>
> >>Using Filter works for me.  :)
> >>

And here's an example of what one might look like:
public class PolishFilter implements Filter {
  public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain) throws IOException, ServletException {
    chain.doFilter(request, response);
## I'm leaving out unimplemented methods.

Best regards,
-- Shinobu

Shinobu "Kawai" Yoshida <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message