You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Scott Boag/CAM/Lotus <Sc...@lotus.com> on 2000/03/30 18:35:13 UTC
Re: [Bug 86] New - FormatterToXML constructer
That constructor is used for simple UTF-8 encodings to a stream. Perhaps
we should delete the constructor, since it isn't used within the code. In
any case, the work-around for your problem is to:
OutputFormat format = new org.apache.xml.serialize.OutputFormat
( "xml", "SHIFT_JIS", false );
FormatterToXML serializer = new FormatterToXML();
serializer.init( ostream, format );
If you are using an xslt stylesheet, the best thing to do is just do
<xsl:output method="xml" encoding="SHIFT_JIS"/>. If you are using the
FormatterToXML by itself you are much better off using the
org.apache.xml.serialize classes to do the job.
Note that most of the FormatterToXXX classes will be depricated in Xalan
1.1.0.
-scott
bugzilla-daemon@locus.
apache.org To: Scott_Boag@lotus.com
cc:
03/30/2000 04:35 AM Subject: [Bug 86] New - FormatterToXML constructer
http://xml.apache.org/bugs/show_bug.cgi?id=86
*** shadow/86 Thu Mar 30 01:35:08 2000
--- shadow/86.tmp.82859 Thu Mar 30 01:35:08 2000
***************
*** 0 ****
--- 1,25 ----
+ Bug#: 86
+ Product: Xalan-J
+ Version: 1.0.0
+ Platform: PC
+ OS/Version: Windows 98
+ Status: NEW
+ Resolution:
+ Severity: normal
+ Priority: P2
+ Component: XPath
+ AssignedTo: Scott_Boag@lotus.com
+ ReportedBy: takagi@crosshead.co.jp
+ URL:
+ Summary: FormatterToXML constructer
+
+ FormatterToXML.java L347
+ this.init(os, new org.apache.xml.serialize.OutputFormat( "xml", "UTF-8",
+ false ));
+
+ this code can not be encode except UTL-8.
+ We need to program if we want to use Shift_JIS,
+
+ FormatterToXML fl = new FormatterToXML();
+ fl.init(new OutputStream(...), new org.apache.xml.serialize.OutputFormat
+ ("xml", "Shift_JIS", false));