cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From itsuto_oz...@epkowa.co.jp
Subject RE: encoding of serialized output
Date Thu, 11 Jul 2002 23:44:08 GMT
Thanx  for your help.
It worked in both cases with these code.

<map:serializer logger="sitemap.serializer.text" mime-type="text/text"
     name="text" src="org.apache.cocoon.serialization.TextSerializer">
 <encoding>ISO-2022-JP</encoding>
</map:serializer>

<map:serializer logger="sitemap.serializer.text" mime-type="text/text"
     name="text" src="org.apache.cocoon.serialization.TextSerializer">
 <encoding>Shift_JIS</encoding>
</map:serializer> 

Because the UTF-8 encode existed apparently in a part of
 the Shift_JIS encorded source file, it seems not to have been able to
 use it well. 


-----Original Message-----
From: Enke, Michael [mailto:michael.enke@wincor-nixdorf.com]
Sent: Friday, July 12, 2002 12:58 AM
To: cocoon-dev@xml.apache.org
Subject: Re: encoding of serialized output


itsuto_ozawa@epkowa.co.jp wrote:
> 
> Hi all,
> I have a problem here regarding the encoding of serialized output.
> this is about C2.
> 
> I wrote sitemap like this.
>    <map:serializer logger="sitemap.serializer.text" mime-type="text/text"
> name="text" src="org.apache.cocoon.serialization.TextSerializer">
>   </map:serializer>
>  I tried to output text file by cocoon. and it comes out with UTF-8
> encoding.
> but I want cocoon to output text with Japanese encoding like
JIS,Shift-JIS,
> 
> I 'd try this tag between  <map:serializer>  </map:serializer>
> <encoding>JIS</encoding>but it dosen't work.
> How can I tel cocoon to output textfile with Japanese encoding?
> 
> I'd appreciate any tips and/or hints.
> 
> Thank you.
> itsu .

Hi,
I tried it with ISO-8859-1 and UTF-8
In both cases it was working like expected.
Did you had a look into the logfiles?
Did you really have the encoding inside the <map:serializer>?
like this:
<map:serializer logger="sitemap.serializer.text" mime-type="text/text"
     name="text" src="org.apache.cocoon.serialization.TextSerializer">
 <encoding>JIS</encoding>
</map:serializer>

Does your JVM know JIS encoding?
You can check this with this little program:

import java.nio.charset.*;
import java.util.*;
 
public class charsets {
  public static void main(String[] argv) {
    SortedMap sm = Charset.availableCharsets();
    System.out.println(sm);
  }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message