in serializers section I have:
     <map:serializer logger="sitemap.serializer.text" mime-type="text/plain" 
name="UTF_16_text" src="org.apache.cocoon.serialization.TextSerializer">
      <encoding>UTF-16</encoding>
     </map:serializer>


in pipeline section:

   <map:match pattern="test">
        <map:generate src="test.xml"/>
        <map:transform src="test.xsl"/>
        <map:serialize type="UTF_16_text"/>
   </map:match>


my test.xml file:
<?xml version="1.0" encoding="KOI8-R"?>
<text>
 тест test
</text>

my test.xsl file:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:template match="text">
     <xsl:value-of select="."/>
  </xsl:template>
</xsl:stylesheet>

after serializing I get the following document (binary dump)
ff fe 0a 00 20 00 42 04 35 04 41 04 42 04 20 00 74 00 65 00 73 00 74 00 0a 00
^^^----- WHY? 

> Can you send more explanation.
> 
> What is your pipeline!! You're encountering problem in a java class ?
> 
May be...

> At 13:28 12/09/2003 +0400, you wrote:
> >Hi all!
> >I use: cocoon2.0.4 + Tomcat 4.1.24
> >
> >In first two octets document text body (first 2 bytes) I get the %FF%FE 
> >bytes when I try get UTF-16 encoded document (html, text, xml).
> >Why? If I try get the document in other encoding I do not get that bytes 
> >(so ok).
> >
> >How I can solve this problem?
> >Or I'm wrong?
> >
> >Many thanks for help!
> >


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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

Reply via email to