On Apr 7, 2008, at 6:08 PM, Wendell Piez wrote:
Hi,
I'm having trouble passing non-URI characters into XSLT as
parameters. A string such as A%CF%80%CF%8C%CE%BB%CE%BB%CF%89%CE%BD
appears (when passed in as a parameter mapped from an incoming URI)
to the XSLT processor as AÏ?Ï?λλÏ?ν (that is, as a nonsense
string that probably won't make it through the mailer). When I use
this value in my document instead of the escaped URI string I
expect, things work, but this is neither legible (while the
unescaped form of the value coming in) nor a properly escaped string
I am able to generate. I have the problem using both Xalan and Saxon
9 under XSLT 2.0. I'm running Cocoon 2.1.10, and have my serializers
set to write UTF-8, which they are doing. It's values coming in as
parameters that are getting mashed.
I've got a minimal XML file and XSLT instance to demonstrate this,
with a mini-sitemap. What's the easiest way to post this for someone
to look at? I'm sure I'm missing something fairly basic.
You have to specify how do you want request parameters decoded:
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String)
There are several ways of doing this in Cocoon, including:
http://cocoon.apache.org/2.2/1366_1_1.html (3. Decoding incoming
requests)
http://wiki.apache.org/cocoon/RequestParameterEncoding (Older
documentation)
Vadim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]