> From: Tomasz Bech [mailto:[EMAIL PROTECTED]]
> 
> Hi all,
>       I found some request about this problem, but no answer.
>       Problem is: when form is in utf8, parameters are encoded as
utf8. But
> server always wants to treat them as iso-something.
> In XSP remedy is:
> <xsp-request:get-parameter name="searchtext" form-encoding="UTF-8"/>
>                                               ^^^^^^^^^^^^^^^^^^^^^^^

Yup.


> But problem appears when I try to use parameters in xsl (as <xsl:param
> name='searchtext/>). No idea how to set encoding to proper one?

Try custom action.

 
> More questions:
> 2. Why server doesn't understand encoding of request parameters?

Sounds like question to your server. Is it tomcat? Try tomcat docs/user
list.


> 3. How to set encoding of request globaly (for all and forever)?

You can change encoding of the JVM if you either change locale of the OS
or provide "-D" parameter on the startup of the JVM (see JDK docs)

Vadim

>       Thanks,
>               Tomasz
> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to