cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: XSLT and international characters in parameters
Date Tue, 02 Apr 2002 18:58:48 GMT
> From: Tomasz Bech [mailto:tbech@polbox.com]
> 
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message