You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sternath Elmar <El...@icn.siemens.de> on 2002/08/06 08:04:58 UTC

problems with special chars

Hi all,

I have a strange problem with special chars. To support German umlauts, I call SetCharacterEncodingAction with UTF-8 in the sitemap. Later, an xsp generates another Cocoon pipeline call adding the request parameters. This works fine for lower case umlauts. But the request parameters containing uppercase umlauts and sz  of the pipeline call are empty! I also tried ISO-8859-1 instead of UTF-8. In this case, none of the request parameters containing any special chars are empty but all of them, no matter if upper or lower case, contain two different, strange chars instead of the correct one. Any ideas?

<map:match pattern="UploadDocument">
			<map:act type="char-encoding">
				<map:parameter name="form-encoding" value="UTF-8"/>
			</map:act>
			<map:generate type="serverpages" src="xsp/UploadDocument.xsp"/>
			<map:transform type="cinclude"/>
			<map:transform type="xslt" src="stylesheets/layout.xsl">
				<map:parameter name="use-request-parameters" value="true" />
			</map:transform>

			<map:serialize type="html" />
		</map:match>

UploadDocument.xsp:
	<cinclude:include src="xml/News.xml"/>
	<cinclude:include>
		<xsp:attribute name="src">cocoon:/UploadDocumentGenerator?IdType=<xsp-request:get-parameter name="IdType"/>&amp;Id=<xsp-request:get-parameter name="Id"/>&amp;Title=<xsp-request:get-parameter name="Title"/>&amp;DocType=<xsp-request:get-parameter name="DocType"/>&amp;Language=<xsp-request:get-parameter name="Language"/>&amp;Publisher=<xsp-request:get-parameter name="Publisher"/>&amp;Description=<xsp-request:get-parameter name="Description"/>&amp;SalesChannel=<session:get-attribute name="lkz" />&amp;Document=<xsp-request:get-parameter name="Document"/>&amp;</xsp:attribute>
	</cinclude:include>

Regards,
Elmar


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

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>