cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Garanovich" <ZM_H...@tut.by>
Subject Re: C2 + Tomcat 3.2.3 international xsl:parameter
Date Fri, 28 Sep 2001 04:29:34 GMT
On Fri, 28 Sep 2001 01:05:05 +0300, Udi Weinsberg wrote:


If I use UTF-8
browser encoding: utf-8
Enter data :йцукен
query string: parameter=%D0%B9%D1%86%D1%83%D0%BA%D0%B5%D0%BD
Displayed <xsl:value-of select="$parameter"/>: &ETH;&sup1;&Ntilde;&#134;&Ntilde;&#131;&ETH;&ordm;&ETH;&micro;&ETH;&frac12;


>I see that many of us have a similar problem. The input path of the C2
>causes translation of the parameter to some other format (UTF-8??) and
>somewhere along the path, our data gets scrambled.
>
>I guess we should address this problem to the developemnt group, and see
>if they have an idea.
>
>Let me know if you succeed in making your 'simple' task of maintaining the
>parameter characters encoding.
>
>Udi.
>
>
>On Thu, 27 Sep 2001, ZM_Main@tut.by wrote:
>
>> sitemap fragment:
>>
>> request:
>> http://localhost:8080/cocoon/books/books.html?parameter=%E9%F6%F3%EA%E5%ED
>>
>>
>> when I use in xsl file
>> <xsl:value-of select="$parameter"/>
>>
>> result next:
>> &eacute;&ouml;&oacute;&ecirc;&aring;&iacute;
>>
>>
>> Can I get next result:
>> КГХЛЕО (in Windows-1251 codepage)
>> or (&#1081;&#1094;&#1091;&#1082;&#1077;&#1085;)
>>
>> -------------------------------------------------------------------------------------
>> sitemap .xmap fragment:
>> <map:transformers default="xslt">
>>  <map:transformer   name="xslt"      src="org.apache.cocoon.transformation.TraxTransformer"
>>                       pool-max="32" pool-min="16" pool-grow="4">
>>   <use-request-parameters>true</use-request-parameters>
>>   <use-browser-capabilities-db>false</use-browser-capabilities-db>
>>  </map:transformer>
>> ...............
>>  <map:serializer name="html"   mime-type="text/html"        src="org.apache.cocoon.serialization.HTMLSerializer">
>>    <encoding>Windows-1251</encoding>
>>  </map:serializer>
>> ..............
>>
>>  <map:match pattern="books/*.html">
>>   <map:generate src="books/{1}.xml"/>
>>   <map:transform src="books/{1}.xsl"/>
>>   <map:serialize type="html"/>
>>  </map:match>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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>
>>
>
>
>---------------------------------------------------------------------
>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>
>




---------------------------------------------------------------------
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