Sorry, my answer was a bit to fast. There is more than one aspect of the encoding:
- Compiletime This aspect defines which character set is/was used to write the source of the page. That's what you can define with the -encoding option of javac. I'm not shure, how to specify that for tomcat without the pagedirective. (As far as I can see, it's not possible to configure the encoding in web.xml) - Runtime This aspect defines the default character encoding while reading from streams and writing to streams. This can be controlled by the system property file.encoding. I would expect that if you set this attribute, your value is used by tomcat to generate and compile the page. (The spec is quite open at that point: 'A JSP container may use some implementation-dependent heuristics and/or structure to determine what the expected character encoding of a JSP is...') I haven't tried this. - Requesttime This aspect defines which character set shall be used to read the request from the client and to write the response to the client. This can be controlled by a filter. > -----Ursprungliche Nachricht----- > Von: Dmitry Melekhov [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 23. Juli 2002 08:35 > An: Tomcat Users List > Betreff: Re: AW: default pageEncoding > > Could you tell me how? > As I understand, pageEncoding directive works at compile time > and it is impossible to do this with filter? > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
